Open pietroppeter opened 3 years ago
check below after opening issue with ideas about api/implementation:
book.toml
fixed in #50playground stuff is probably not relevant (since it is rust specific).
mathjax_support (I would go with katex as in nimib? )
I have no preference in either way really, I just want Latex rendering to work 😛 Just to get it working, would you be ok with adding this so nbDoc.useLatex
works at least?
{{#latex}}
<!-- MathJax -->
<script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{{/latex}}
Well, already now without changing anything in nimibook using
nbDoc.context["mathjax_support"] = true
Should make latex work (with mathjax).
To add latex with katex (should be faster than mathjax) and make nbDoc.useLatex
work we would need to just add {{{latex}}}
in document.mustache
's head.
Of course! The simple solution is too obvious sometimes 😅 Thank you! :)
we should map all features that are present in mdbook and not here in appropriate issues.
besides looking at mdbook documentation, an useful list to start with is contained in the html comment hidden in README.md (written while converting index.hbs to mustache).