aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-08-11 20:57:15 +0200
committerBjørn Erik Pedersen <[email protected]>2024-08-11 20:57:15 +0200
commite42263529c35d966b752690ad1bcb461b90b470d (patch)
tree9c1b67b4681187b875c434c683cd199543f6e4c0 /internal
parent891aa00fe14101feed2fab4b6c79ea35773c9fe0 (diff)
downloadhugo-e42263529c35d966b752690ad1bcb461b90b470d.tar.gz
hugo-e42263529c35d966b752690ad1bcb461b90b470d.zip
Add katex option ThrowOnError
As an internal option for now. Katex misbehaves in error situations without a value set.
Diffstat (limited to 'internal')
-rw-r--r--internal/warpc/katex.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/warpc/katex.go b/internal/warpc/katex.go
index 2412467a9..4364dd9cc 100644
--- a/internal/warpc/katex.go
+++ b/internal/warpc/katex.go
@@ -37,6 +37,10 @@ type KatexOptions struct {
// Specifies a minimum thickness, in ems, for fraction lines.
MinRuleThickness float64 `json:"minRuleThickness"`
+
+ // If true, KaTeX will throw a ParseError when it encounters an unsupported command.
+ // For internal use only, for now.
+ ThrowOnError bool `json:"throwOnError"`
}
type KatexOutput struct {