generate .Rmd file to .md instead of html with hugo/blogdown

508 Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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