matrix-spec/layouts/_markup/render-passthrough.html
Kévin Commaille 93835adcca
Use docsy's support for KaTeX
Rather than having our own implementation.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2026-01-07 10:12:35 +01:00

12 lines
350 B
HTML

{{- /*
This is a passthrough render hook (https://gohugo.io/render-hooks/passthrough/).
We use it to send the delimited passthrough element through KaTeX to render maths
in the Olm / Megolm spec.
See: https://www.docsy.dev/docs/content/diagrams-and-formulae/#add-passthrough-render-hook
*/ -}}
{{ partial "scripts/math.html" . }}