1

I have a file named example.Rmd under post/ folder, which contains markdown text and some code chunks. I run the command

build_site(run_hugo = FALSE)

in RStudio console to tell blogdown to just compile .Rmd files to .md. However, I got example.html instead of example.md

Can anyone tell me how to generate .md instead .html from .Rmd?

Tue Nguyen
  • 73
  • 1
  • 6
  • See https://stackoverflow.com/questions/24292909/new-r-studio-version-0-98-932-deletes-md-file-how-to-prevent – talat Sep 15 '17 at 07:06

1 Answers1

2

Please read Section 1.5 of the blogdown book. The short answer is to use the filename extension .Rmarkdown instead of .Rmd.

Yihui Xie
  • 28,913
  • 23
  • 193
  • 419