summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/transform/ToMath.md
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-11-13 11:07:57 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-11-13 11:07:57 +0100
commit3477d9fcec39d17f99cbc891e337658e8660f5db (patch)
tree4b315ea0ec6c804b40815e2a49911c4ef96681fd /docs/content/en/functions/transform/ToMath.md
parente79ee0d5167707d891c80906e71daa098c9e46af (diff)
parentde0df119b504a91c9e1f442b07954f366ffb2932 (diff)
downloadhugo-3477d9fcec39d17f99cbc891e337658e8660f5db.tar.gz
hugo-3477d9fcec39d17f99cbc891e337658e8660f5db.zip
Merge commit 'de0df119b504a91c9e1f442b07954f366ffb2932'
Diffstat (limited to 'docs/content/en/functions/transform/ToMath.md')
-rw-r--r--docs/content/en/functions/transform/ToMath.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/en/functions/transform/ToMath.md b/docs/content/en/functions/transform/ToMath.md
index db93a7382..bbdc7b289 100644
--- a/docs/content/en/functions/transform/ToMath.md
+++ b/docs/content/en/functions/transform/ToMath.md
@@ -2,7 +2,7 @@
title: transform.ToMath
description: Renders a math expression using KaTeX.
categories: []
-keywords: []
+keywords: [math,katex]
action:
aliases: []
related:
@@ -36,7 +36,7 @@ These are a subset of the [KaTeX options].
output
: (`string`). Determines the markup language of the output. One of `html`, `mathml`, or `htmlAndMathml`. Default is `mathml`.
- <!-- Indent to prevent spliting the description list. -->
+ {{% comment %}}Indent to prevent splitting the description list.{{% / comment %}}
With `html` and `htmlAndMathml` you must include KaTeX CSS within the `head` element of your base template. For example:
@@ -94,7 +94,7 @@ There are 3 ways to handle errors from KaTeX:
1. Let KaTeX throw an error and make the build fail. This is the default behavior.
1. Handle the error in your template. See the render hook example below.
-1. Set the `throwOnError` option to `false` to make KaTeX render the expression as an error instead of throwing an error. See [options].
+1. Set the `throwOnError` option to `false` to make KaTeX render the expression as an error instead of throwing an error. See [options](#options).
{{< code file=layouts/_default/_markup/render-passthrough-inline.html copy=true >}}
{{ with transform.ToMath .Inner }}