()
| 18 | ]; |
| 19 | |
| 20 | const configure = () => { |
| 21 | if (!global.MathJax) return; |
| 22 | const MathJax = global.MathJax; |
| 23 | MathJax.Hub.Config({ |
| 24 | tex2jax: { |
| 25 | inlineMath: [ |
| 26 | ['$', '$'], |
| 27 | ['\\(', '\\)'] |
| 28 | ], |
| 29 | processEscapes: true, |
| 30 | processClass: 'mathjax-support' |
| 31 | } |
| 32 | }); |
| 33 | document.querySelectorAll('.mathjax-support').forEach(el => { |
| 34 | MathJax.Hub.Queue(['Typeset', MathJax.Hub, el]); |
| 35 | }); |
| 36 | }; |
| 37 | |
| 38 | export const initializeMathJax = (mathJaxChallenge = true) => { |
| 39 | const mathJaxMountPoint = document.querySelector('#mathjax'); |
no outgoing calls
no test coverage detected