Skip to content

Add mdbook-typst-highlight#110

Open
sitandr wants to merge 1 commit intopolylux-typ:mainfrom
sitandr:mdbook-typst-highlight
Open

Add mdbook-typst-highlight#110
sitandr wants to merge 1 commit intopolylux-typ:mainfrom
sitandr:mdbook-typst-highlight

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
Collaborator

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.

2 participants