theme: Render mathematical markup with transform.ToMath

Closes #2897
This commit is contained in:
Joe Mooring authored and Bjørn Erik Pedersen committed 2025-02-14 09:54:02 +01:00
1 parent 14bf9dc700
commit bc16341ca1
3 files changed
+17

No files matched your search

+4
View File
@@ -34,6 +34,10 @@
{{ end }}
{{ $t.Stop }}
{{ end }}
{{ $noop := .WordCount }}
{{ if .Page.Store.Get "hasMath" }}
<link href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css" rel="stylesheet">
{{ end }}
{{ partial "layouts/head/head.html" . }}
</head>
<body class="flex flex-col min-h-full bg-white dark:bg-blue-950">