Add Mathjax to rustdoc output
when generating local documentation, this requires `RUSTDOCFLAGS=--html-in-header docs/mathjax.html` for math to be rendered.master
parent
bddc3e1977
commit
e943345693
@ -0,0 +1,11 @@
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
asciimath2jax: {
|
||||
delimiters: [['$','$']]
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" async
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
|
||||
</script>
|
Loading…
Reference in New Issue