Skip to content

Commit

Permalink
Rolls back to the new version of Matjax
Browse files Browse the repository at this point in the history
  • Loading branch information
bulhakovolexii committed Feb 17, 2024
1 parent dca12aa commit e74cc98
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions docs/_includes/head_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@
{% elsif site.latex == "mathjax" %}

<!-- Use MathJax to Render LaTeX in MarkDown -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$']]},
"HTML-CSS": { linebreaks: { automatic: true } },
CommonHTML: { linebreaks: { automatic: true } },
SVG: { linebreaks: { automatic: true } }
});
<script>
MathJax = {
tex: {
inlineMath: [
["$", "$"],
["\\(", "\\)"],
],
processEscapes: true,
},
};
</script>
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS_HTML"
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
></script>

{% elsif site.latex == "katex" %}
Expand Down

0 comments on commit e74cc98

Please sign in to comment.