A preprocessor for mdBook, base on lzanini/mdbook-katex.
To LaTeX render correctly, it does simple text replacement, such as _
with \_
, or *
with \*
.
Another version without mdbook is here, which I use in hugo.
First, install mdbook-katex
$ cargo install --git "https://github.com/rogeryoungh/mdbook-katex"
Add the following lines to your book.toml file
[preprocessor.katex]