Sha256: b38392667fea17fdd8ef6da6b80c2cb6e59faad30800048f0606a1c00510a8fc
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
<script> window.MathJax = { tex: { inlineMath: [ ['\\(', '\\)'], ], }, options: { renderActions: { addMenu: [] } }, }; window.addEventListener("load", function() { [...document.querySelectorAll('p')] .filter(p => p.childElementCount == 0 && p.textContent.startsWith('[') && p.textContent.endsWith(']')) .forEach(p => p.replaceChildren(MathJax.tex2chtml(p.textContent.replace(/^\[(.+)\]/, '$1')))); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
databook-theme-0.1.2 | _includes/custom/mathjax.liquid |