hexo/node_modules/hexo-theme-butterfly/layout/includes/third-party/math/katex.pug

9 lines
294 B
Plaintext

link(rel="stylesheet" type="text/css" href=url_for(theme.asset.katex))
script(src=url_for(theme.asset.katex_copytex))
script.
(() => {
document.querySelectorAll('#article-container span.katex-display').forEach(item => {
btf.wrap(item, 'div', { class: 'katex-wrap'})
})
})()