Reputation: 53
I have found some strange differences in the way .Rmd files are rendered compared to .Rmarkdown. My setup: Beautiful hugo theme Blogdown 0.9 Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) If change the file extension between Rmd and Rmarkdown, I observe the following differences:
Is this expected behavior? Is there something with the theme that causes this?
Upvotes: 3
Views: 701
Reputation: 3584
Yes the difference between .Rmd
and .Rmarkdown
is expected and Yihui et al. outlines it in their book (it's around the middle of the page)
You cannot use Markdown features only supported by Pandoc, such as fenced Div
s.
Math expressions only work if you apply the JavaScript solution mentioned in Section B.3.
The main thing to note is that .Rmarkdown
gets converted to .markdown
documents first and gets passed onto Hugo's Markdown renderer (e.g., Goldmark
or Blackfriday
) to generate a html while .Rmd
uses Pandoc
by default.
Upvotes: 4