Skip to content

Commit ba8c5fd

Browse files
authored
content: Change MathJax version reference from v3 to v4
1 parent c834652 commit ba8c5fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎content/en/content-management/mathematics.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ Step 2
8686
: Create a _partial_ template to load MathJax or KaTeX. The example below loads MathJax, or you can use KaTeX as described in the [engines](#engines) section.
8787

8888
```go-html-template {file="layouts/_partials/math.html" copy=true}
89-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
89+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js"></script>
90+
9091
<script>
9192
MathJax = {
9293
tex: {
@@ -169,7 +170,7 @@ I will give you \\$2 if you can solve $y = x^2$.
169170
170171
## Engines
171172

172-
MathJax and KaTeX are open-source JavaScript display engines. Both engines are fast, but at the time of this writing MathJax v3.2.2 is slightly faster than KaTeX v0.16.11.
173+
MathJax and KaTeX are open-source JavaScript display engines.
173174

174175
> [!note]
175176
> If you use the `$...$` delimiter pair for inline equations, and occasionally use the&nbsp;`$`&nbsp;symbol outside of math contexts, you must use MathJax instead of KaTeX to avoid unintended formatting caused by [this KaTeX limitation](https://github.com/KaTeX/KaTeX/issues/437).

0 commit comments

Comments
 (0)