Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add R Markdown support #170

Closed
wants to merge 1 commit into from

Conversation

sondalex
Copy link
Contributor

This Pull Request adds support for R Markdown files (extension .rmd and .Rmd). R Markdown is parsed using the existing Markdown parser.

@sondalex sondalex changed the title Add Markdown support Add R Markdown support Jun 20, 2022
@jamesm131
Copy link

Would it be possible to extend this PR to support Quarto files (.qmd), which seems to be the generation of R Markdown (with an extremely similar file format in many cases)? Many of the same people are working on it and it is supported by R Studio.

https://quarto.org/

@sondalex
Copy link
Contributor Author

sondalex commented Jun 22, 2022

Apparently, Quarto enables a few Pandoc extensions. For example Callout Blocks are based on Pandoc fenced_divs' extension.
New options would have to be added to the Markdown Parser to support these extensions.
However, it is possible to add partial .qmd file support using the existing Markdown implementation.

The issue will be that lines with

 ::: {.<word>}

will be checked and potential mistakes reported by vscode-ltex.

I do not have time to add extensions to the parser. However, I can create a new PR at the end of this week/next week based on this PR which will add partial .qmd support.

@valentjn valentjn self-assigned this Feb 12, 2023
@valentjn valentjn added this to the 16.0.0 milestone Feb 12, 2023
@valentjn
Copy link
Owner

Merged via #172.

@valentjn valentjn closed this Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants