Suse 标签

2022
const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display); const text = document.createTextNode(''); node.parentNode.replaceChild(text, node); math.start = {node: text, delim: '', n: 0}; math.end = {node: text, delim: '', n: 0}; doc.math.push(math); }); }, '', false], insertedScript: [200, () => { document.querySelectorAll('mjx-container').forEach(node => { let target = node.parentNode; if (target.nodeName.toLowerCase() === 'li') { target.parentNode.classList.add('has-jax'); } }); }, '', false] } } }; (function () { var script = document.createElement('script'); script.src = '//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'; script.defer = true; document.head.appendChild(script); })(); } else { MathJax.startup.document.state(0); MathJax.texReset(); MathJax.typeset(); }