mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Add katex option ThrowOnError
As an internal option for now. Katex misbehaves in error situations without a value set.
This commit is contained in:
@@ -223,6 +223,9 @@ func (ns *Namespace) ToMath(ctx context.Context, args ...any) (template.HTML, er
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure this isn't set by the client (for now).
|
||||
katexInput.Options.ThrowOnError = false
|
||||
|
||||
s := hashing.HashString(args...)
|
||||
key := "tomath/" + s[:2] + "/" + s[2:]
|
||||
fileCache := ns.deps.ResourceSpec.FileCaches.MiscCache()
|
||||
|
Reference in New Issue
Block a user