mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-20 13:03:42 +01:00
Document the passthrough render hook's layout
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
parent
4a0d7c5a50
commit
d0929ef4f0
|
|
@ -1,3 +1,13 @@
|
|||
{{- /*
|
||||
|
||||
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://gohugo.io/functions/transform/tomath/#step-2
|
||||
|
||||
*/ -}}
|
||||
{{- $opts := dict "output" "htmlAndMathml" "displayMode" (eq .Type "block") }}
|
||||
{{- with try (transform.ToMath .Inner $opts) }}
|
||||
{{- with .Err }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue