Add nix shell config
This commit is contained in:
parent
f747f57145
commit
ac07362535
5 changed files with 120 additions and 47 deletions
15
dist/blog/template.html
vendored
15
dist/blog/template.html
vendored
|
|
@ -21,6 +21,21 @@
|
|||
processHtmlClass: 'arithmatex'
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
document.querySelectorAll('script[type^="math/tex"]').forEach(function(script) {
|
||||
const isDisplay = script.type.includes('mode=display');
|
||||
const math = script.textContent;
|
||||
const span = document.createElement('span');
|
||||
span.className = isDisplay ? 'mathjax-block' : 'mathjax-inline';
|
||||
span.innerHTML = isDisplay ? `\\[${math}\\]` : `\\(${math}\\)`;
|
||||
script.parentNode.replaceChild(span, script);
|
||||
});
|
||||
|
||||
if (typeof MathJax !== 'undefined' && MathJax.typesetPromise) {
|
||||
MathJax.typesetPromise();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
a {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue