diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_markup/render-passthrough.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/_markup/render-passthrough.html b/layouts/_markup/render-passthrough.html new file mode 100644 index 0000000..4e4e779 --- /dev/null +++ b/layouts/_markup/render-passthrough.html @@ -0,0 +1,13 @@ +{{- $options := dict + "displayMode" (eq .Type "block") + "output" "mathml" + "strict" "error" + "throwOnError" true +-}} +{{- with try (transform.ToMath .Inner $options) -}} + {{- with .Err -}} + {{- errorf "Unable to render mathematical markup at %s: %s" $.Position . -}} + {{- else -}} + {{- .Value -}} + {{- end -}} +{{- end -}} |
