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 mdbook-typst-highlight #110

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sitandr
Copy link
Contributor

@sitandr sitandr commented Sep 26, 2023

See running version with highlight there: https://sitandr.github.io/polylux/book/dynamic/syntax.html

I'm not sure, maybe it will be better to disable highlighting inline code, especially considering that #var and #fn() are colored differently. I guess it should be up to you, so I've left two lines commented in book.toml (the second one is for the case you are lazy putting ```typ at code blocks everywhere.

@andreasKroepelin
Copy link
Owner

Awesome, thank you!

I am in favour of disabling highlighting for inline code (not all of that is Typst code, to begin with) and disabling highlighting for block code without typ as the language.

I will have to review the preprocessors code prior to merging this, so expect it to take a while (I am quite busy at the moment).

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.

None yet

2 participants