As an internal option for now. Katex misbehaves in error situations without a value set.
// 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 {
}
}
+ // 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()