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

Remove R syntax highlighting of non R code blocks in reference pages #1692

Closed
maelle opened this issue May 18, 2021 · 1 comment · Fixed by #1724
Closed

Remove R syntax highlighting of non R code blocks in reference pages #1692

maelle opened this issue May 18, 2021 · 1 comment · Fixed by #1724

Comments

@maelle
Copy link
Collaborator

maelle commented May 18, 2021

Related to #1690

See #1691 (comment)

@maelle
Copy link
Collaborator Author

maelle commented May 18, 2021

A problem with XPath selection is that the structure of code blocks will depend on the roxygen2 version used. Edit: actually no, it should be fine.

Once non R code blocks are extracted, the code & language could be extracted and this could be fed to rmarkdown::pandoc_convert() without too much hassle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant