madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 251 forks source link

embedded R code comments (#) displayed as markdown header #1997

Open joeledvina opened 8 years ago

joeledvina commented 8 years ago

Using Visual Studio to view rmarkdown file (.rmd), web essentials correctly highlights most of the embedded R code except for displaying the comment lines as top-level markdown headers. Both start with a single '#' character.

Here's an example of code displayed using Rmd with embedded R code. The comment lines in the embedded code are displayed in a large font: vs_rmd

and the same example as it displays in a r script file. The comments in the embedded code chunks are an appropriate size: vs_r