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:
parent
82b8c71059
commit
cb5d51e7c1
@ -182,13 +182,13 @@ runtime needs to be included. This can be done with
|
||||
[additional JavaScript][20]:
|
||||
|
||||
``` yaml
|
||||
extra_js:
|
||||
extra_javascript:
|
||||
- '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
|
||||
adding another JavaScript file **before** the MathJax runtime in `extra_js`
|
||||
which contains your MathJax configuration, e.g.:
|
||||
adding another JavaScript file **before** the MathJax runtime in
|
||||
`extra_javascript` which contains your MathJax configuration, e.g.:
|
||||
|
||||
``` js
|
||||
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/
|
||||
[18]: https://www.mathjax.org/
|
||||
[19]: http://meta.math.stackexchange.com/questions/5020/
|
||||
|
Loading…
Reference in New Issue
Block a user