MitseaBlog/themes/hugo-theme-stack/layouts/partials/article/components/math.html

13 lines
527 B
HTML
Raw Normal View History

2022-10-11 17:34:41 +08:00
{{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}}
<script>
window.addEventListener("DOMContentLoaded", () => {
2024-07-31 17:10:56 +08:00
renderMathInElement(document.body, {
2022-10-11 17:34:41 +08:00
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
2024-07-31 17:10:56 +08:00
],
ignoredClasses: ["gist"]
2022-10-11 17:34:41 +08:00
});})
</script>