Fix latex

This commit is contained in:
Aiden Bai 2022-05-04 08:10:59 -07:00
parent b67a389bea
commit b4ff12ca0b
No known key found for this signature in database
GPG key ID: D37584388675FF3A
3 changed files with 23 additions and 11 deletions

View file

@ -87,6 +87,15 @@
{{if $.Site.Data.config.enableLinkPreview}}
initPopover({{strings.TrimRight "/" .Site.BaseURL }})
{{end}}
{{if $.Site.Data.config.enableLatex}}
renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
],
throwOnError : false
});
{{end}}
};
attachSPARouting(draw);
</script>