Files
hugo/tpl
Bjørn Erik Pedersen e1e1baa1bd Improve Katex error handling and fix handling of large expressions
* Make throwOnError=true the new default
* Handle JS errors as part of the RPC request/response flow
* Return a new Result type with .Err on it

This enables constructs on the form:

```handlebars
{{ with transform.ToMath "c = \\foo{a^2 + b^2}" }}
	{{ with .Err }}
	 	{{ warnf "error: %s" . }}
	{{ else }}
		{{ . }}
	{{ end }}
{{ end }}
```

Note that the new `Result` type behaves like `template.HTML` (or a string if needed) when printed, but it will panic if in a error state.

Closes #12748
2024-08-12 13:50:18 +02:00
..
2024-08-06 22:26:43 +02:00
2024-08-06 19:13:35 +02:00
2024-07-06 14:08:15 +02:00
2024-06-25 15:48:02 +02:00
2023-02-25 19:53:18 +01:00
2024-06-22 19:01:56 +02:00
2024-01-28 23:14:09 +01:00
2023-02-25 19:53:18 +01:00
2024-01-28 23:14:09 +01:00
2024-01-28 23:14:09 +01:00
2024-04-11 09:31:33 +02:00
2024-06-23 11:25:47 +02:00