mxcop / mdbook-syntect

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:Rust 99.3%Language:CSS 0.7%