Skip to content

LaTeX syntax highlighting in Rmd #20

Description

@gadenbuie
  • VSCode Version: 1.28.0
  • VSCode-R Version: v0.6.2
  • OS Version: x86_64-apple-darwin15.6.0 (64-bit)

Steps to Reproduce:

  1. Use two reserved markdown characters in LaTeX math blocks in the same line
  2. Syntax highlighting does not consider the LaTeX math notation and applies styling

Example of issue (with totally made up math)

image

Expected something more like this

image

TBH, simply catching the use of LaTeX and removing the syntax highlighting between paired $..$ or $$..$$ would be a great improvement.

Example text
For each $x_i$, consider all $x_i < k$.
Is $x*2$ greater than $y*2$?

$$
y_i = m * x_i + b
$$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions