-
-
Notifications
You must be signed in to change notification settings - Fork 793
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
Disable syntax highlighting when raw theme is set to none
#4175
Comments
Duplicate of #4182 I believe |
Sorry but I do not believe this is a duplicate |
@DrGo it's sort of a half-duplicate. the issue doesn't really describe the bug, but in the PR discussion for that issue, we've come to the conclusion that |
none
I see.. thanks, |
@laurmaedje |
|
Is anyone working on implementing theme:none? I could try to submit a PR if that's ok with you. |
To implement EDIT: I am trying to implement it. |
Thanks, |
OK. Thanks |
Description
There does not seem to be an obvious way to remove syntax highlighting from code (raw) blocks without altering the source.
It would be great if there is a way to disable syntax highlighting in Typst itself: e.g.,
#set raw(lang: none)
Use Case
The current solution (removing the language specifier from the source) interferes with other uses of that specifier, e.g., in mdbook, code blocks need to be annotated with the language specifier to enable e.g., testing the code blocks. The other solution
#show raw.line: it => it.text
seems hacky and not obvious. Most users will expect setting raw(lang:none) to disable syntax highlighting.The text was updated successfully, but these errors were encountered: