Documentation

This commit is contained in:
squidfunk
2024-01-20 08:53:16 +07:00
parent e8504fdffb
commit 14d7874d0d
2 changed files with 63 additions and 58 deletions

View File

@@ -53,11 +53,17 @@ of [additional JavaScript]:
}
};
document$.subscribe(() => {
document$.subscribe(() => { // (1)!
MathJax.startup.output.clearCache()
MathJax.typesetClear()
MathJax.texReset()
MathJax.typesetPromise()
})
```
1. This integrates MathJax with [instant loading]
=== ":octicons-file-code-16: `mkdocs.yml`"
``` yaml
@@ -81,6 +87,7 @@ See reference for usage:
[MathJax]: https://www.mathjax.org/
[KaTeX]: https://github.com/Khan/KaTeX
[additional JavaScript]: ../../customization.md#additional-javascript
[instant loading]: ../setting-up-navigation.md#instant-loading
[Using block syntax]: ../../reference/math.md#using-block-syntax
[Using inline block syntax]: ../../reference/math.md#using-inline-block-syntax