Skip to content

Commit

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

<!-- Use MathJax to Render LaTeX in MarkDown -->
<script>
MathJax = {
tex: {
inlineMath: [
["$", "$"],
["\\(", "\\)"],
],
processEscapes: true,
},
};
<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>
<script
type="text/javascript"
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS_HTML"
></script>

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

0 comments on commit 4fa4847

Please sign in to comment.