-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make code blocks look more like Stata code #20
Comments
Note: there's a universal problem of highlighting Stata keywords as code even if they're behind comments. Might need a custom theme for this. |
I use the keyword It currently already works on README.md and on vignettes and I am already using it on in |
Let me know if you see some reason for why |
For adding the language to the codeblock, we could also do this on the However we do it, it seems like Stata keywords that appear after comments are still highlighted. Here's an example from repkit (next to last code block on the page you linked) : If that's OK, we only need to say that these are Stata codeblocks. If not, we might need to tweak the syntax highlighting tooling--perhaps making upstream changes to the tooling Quarto uses (e.g., Quarto highlights Stata via' Pandoc (see here); we could write a custom highlighter via skylighting (see here). |
This turns out to be a Pandoc issue. I can replicate the behavior above with only Pandoc. I'll raise an issue with Quarto, Pandoc, and/or skylighting, the library Quarto and Pandoc use for syntax highlighting. I suspect Steps to reproduce
Result: |
We can track things on this issue for skylighting, an upstream component of Pandoc/Quarto. |
To my mind, this entails:
This might translate into a few tasks
md
toqmd
. See Quarto docs here.The text was updated successfully, but these errors were encountered: