goldmark-treeblood is an extension for goldmark that renders
To use goldmark-treeblood, import the goldmark-treeblood
package
import "github.com/wyatt915/goldmark-treeblood"
and include treeblood.MathML
in the list of extensions passed to goldmark
goldmark.New(
goldmark.WithExtensions(
// ...
treeblood.MathML(),
),
// ...
).Convert(src, out)
This extension respects both TeX-style delimiters $...$
and $$...$$
as well as their more modern AMS \(...\)
and \[...\]
.