software-mansion / scarb

The Cairo package manager
http://docs.swmansion.com/scarb/
MIT License
192 stars 72 forks source link

Add Cairo highlighting support straight to mdBook repository #1525

Open wawel37 opened 3 months ago

maciektr commented 2 months ago

After this is done, replace rust with cairo here: https://github.com/software-mansion/scarb/blob/473afac8674502a920be78edfe2d58a60d8e696d/extensions/scarb-doc/src/docs_generation/markdown/traits.rs#L218

wawel37 commented 3 weeks ago

PR created in mdBook repository. https://github.com/rust-lang/mdBook/pull/2468

wawel37 commented 3 weeks ago

Update: mdBook requires us to make highlight.js support cairo directly. Made PR with changes to highlight.js directly: https://github.com/highlightjs/highlight.js/pull/4162

wawel37 commented 4 days ago

Unfortunately people from mdBook rejected any kind of way of adding support for custom language highlighting as for now. When the mdBook update the highlight.js, we can retry with a Cairo support inside highlighting theme.