1/* global NexT, CONFIG, MathJax */ 2 3document.addEventListener('page:loaded', () => { 4 if (!CONFIG.enableMath) return; 5 6 if (typeof MathJax === 'undefined') { 7 window.MathJax = { 8 tex: { 9 inlineMath: { '[+]': [['$', '$']] }, 10 tags : CONFIG.mathjax.tags 11 }, 12 options: { 13 renderActions: { 14 insertedScript: [200, () => { 15 document.querySelectorAll('mjx-container').forEach(node => { 16 const target = node.parentNode; 17 if (target.nodeName.toLowerCase() === 'li') { 18 target.parentNode.classList.add('has-jax'); 19 } 20 }); 21 }, '', false] 22 } 23 } 24 }; 25 NexT.utils.getScript(CONFIG.mathjax.js, { 26 attributes: { 27 defer: true 28 } 29 }); 30 } else { 31 MathJax.startup.document.state(0); 32 MathJax.typesetClear(); 33 MathJax.texReset(); 34 MathJax.typesetPromise(); 35 } 36});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.