mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix wrong customization documentation on MathJax
This commit is contained in:
@@ -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/
|
||||||
|
|||||||
Reference in New Issue
Block a user