Skip to content

Commit a24534e

Browse files
committed
one more time :)
1 parent 08db5f8 commit a24534e

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

_includes/js-selector.html

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,12 @@
2424
{% if page.math %}
2525
<!-- MathJax -->
2626
<script type="text/x-mathjax-config">
27-
// see: <https://docs.mathjax.org/en/latest/options/input/tex.html#tex-options>
28-
MathJax = {
29-
tex: {
30-
inlineMath: [ // start/end delimiter pairs for in-line math
31-
['$','$'],
32-
['\\(','\\)']
33-
],
34-
displayMath: [ // start/end delimiter pairs for display math
35-
['$$', '$$'],
36-
['\\[', '\\]']
37-
],
38-
processEscapes: true
39-
}
40-
};
27+
MathJax.Hub.Config({
28+
tex2jax: { inlineMath: [['$', '$']] }
29+
});
4130
</script>
4231
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
43-
<script type="text/javascript" id="MathJax-script" async
44-
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
45-
</script>
32+
<script id="MathJax-script" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
4633
{% endif %}
4734
{% if page.code %}
4835
<script src="{{ '/assets/js/code-tabs.js' | relative_url }}"></script>

0 commit comments

Comments
 (0)