Skip to content

Commit

Permalink
Modify the configuration of MathJax
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio-R1 committed Nov 20, 2022
1 parent e3e664f commit 3a389cc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion grip/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,23 @@
{%- if render_math %}
<script>
MathJax = {
loader: {load: ['ui/safe']},
tex: {
inlineMath: [['$', '$']],
displayMath: [['$$', '$$']]
displayMath: [['$$', '$$']],
packages: {
"[-]": ["html", "newcommand", "require"]
}
},
options: {
safeOptions: {
allow: {
URLs: 'none',
classes: 'none',
cssIDs: 'none',
styles: 'none'
}
}
}
};
</script>
Expand Down

0 comments on commit 3a389cc

Please sign in to comment.