book icon indicating copy to clipboard operation
book copied to clipboard

Avoid parsing inline equations in code blocks

Open bytesnake opened this issue 3 years ago • 1 comments

At the moment this code snippets

user@computer:~/rust-ml/book$ cd code/
user@computer:~/rust-ml/book/code$ cargo run --release --example kmeans

is parsed with the dollar symbols as inline equations.

bytesnake avatar May 01 '21 11:05 bytesnake

There's now a native option for MathJax support in mdbook, by adding mathjax-support = true under the [output.html] heading, which might be a fair alternative to using the mdbook-scientific package as a pre-processor. I've experimented around with it a little for the update I'm putting together for the first couple of chapters now that Lifna 0.6 has come out. We'd also need to think about the gnuplot function that was being tested out.

https://rust-lang.github.io/mdBook/format/mathjax.html?highlight=mathjax#mathjax-support

quietlychris avatar Sep 03 '22 03:09 quietlychris