12 lines
518 B
HTML
12 lines
518 B
HTML
|
{{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}}
|
||
|
<script>
|
||
|
window.addEventListener("DOMContentLoaded", () => {
|
||
|
renderMathInElement(document.querySelector(`.article-content`), {
|
||
|
delimiters: [
|
||
|
{ left: "$$", right: "$$", display: true },
|
||
|
{ left: "$", right: "$", display: false },
|
||
|
{ left: "\\(", right: "\\)", display: false },
|
||
|
{ left: "\\[", right: "\\]", display: true }
|
||
|
]
|
||
|
});})
|
||
|
</script>
|