Fix wrong customization documentation on MathJax

This commit is contained in:
squidfunk
2017-01-09 21:52:04 +01:00
parent 82b8c71059
commit cb5d51e7c1

View File

@@ -182,13 +182,13 @@ runtime needs to be included. This can be done with
[additional JavaScript][20]: [additional JavaScript][20]:
``` yaml ``` yaml
extra_js: extra_javascript:
- 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML' - 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML'
``` ```
If you want to override the default MathJax configuration, you can do this by If you want to override the default MathJax configuration, you can do this by
adding another JavaScript file **before** the MathJax runtime in `extra_js` adding another JavaScript file **before** the MathJax runtime in
which contains your MathJax configuration, e.g.: `extra_javascript` which contains your MathJax configuration, e.g.:
``` js ``` js
MathJax.Hub.Config({ MathJax.Hub.Config({
@@ -213,6 +213,14 @@ MathJax.Hub.Config({
}); });
``` ```
In your `mkdocs.yml`, include it with:
``` yaml
extra_javascript:
- 'extra.js'
- 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML'
```
[17]: https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/ [17]: https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/
[18]: https://www.mathjax.org/ [18]: https://www.mathjax.org/
[19]: http://meta.math.stackexchange.com/questions/5020/ [19]: http://meta.math.stackexchange.com/questions/5020/