/mdbook-syntect

A preprocessor for mdBook, rendering codeblocks to HTML at build time.

Primary LanguageRustMIT LicenseMIT

MDBook Syntect

Disclaimer: this extension is not from the creators of syntect!

A basic mdbook extension for highlighting codeblocks at "compile" time.
syntect is used to do all the syntax highlighting.

This project currently just a proof of concept, don't expect too much!
However, feel free to contribute :)

Usage

book.toml

# add this line to your book.toml
[preprocessor.syntect]
custom-theme = "assets/<your-theme>.tmTheme"

© 2023 Max, All rights reserved.