How do I tell Rstudio to treat a file with the .md extension as an RMarkdown file

For a series of reasons, I am using .md as an extension for an RMarkdown file. However, there is apparently no way to indicate RStudio this is an RMarkdown file; it's not able to edit files through a symbolic extension either. Any idea how to fix this? Maybe through the YAML front matter?

Try using .Rmd as an extension, does work on my setup

How does .md work?

It doesn't. I was wrong. The extension needs to be .Rmd (or .qmd, if you have Quarto). It would be necessary to get down in the weeds of the render sections of knitr to recognize other extensions.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.