Skip to content

Instantly share code, notes, and snippets.

@rafisics
Last active August 12, 2021 11:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rafisics/1babbb8c3ac1d43f595414ec2aa7681a to your computer and use it in GitHub Desktop.
Save rafisics/1babbb8c3ac1d43f595414ec2aa7681a to your computer and use it in GitHub Desktop.
MathJax version 3 configuration
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>
window.MathJax = {
tex: {
inlineMath: [ ['$','$'],['\\(','\\)'] ],
displayMath: [ ['$$','$$'], ['\\[','\\]'] ],
processEscapes: true,
processEnvironments: true,
processRefs: true
},
options: {
ignoreHtmlClass: 'tex2jax_ignore|editor-rich-text'
}
};
</script>