mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 18:14:28 +00:00
12 lines
379 B
HTML
12 lines
379 B
HTML
{{ with try (transform.ToMath .Inner (dict "displayMode" true)) }}
|
|
{{ with .Err }}
|
|
{{ errorf "Failed to render KaTeX: %q. See %s" . $.Position }}
|
|
{{ else }}
|
|
{{ if $.Attributes.class }}
|
|
<div class="{{ $.Attributes.class | safeHTMLAttr }}">{{ .Value }}</div>
|
|
{{ else }}
|
|
{{ .Value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|