ast.go | ||
extend_test.go | ||
extend.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
parser.go | ||
README.md | ||
render.go |
goldmark-superscript
GoldMark superscript extension.
This implements the superscript
of pandoc.
H~2~O is a liquid. 2^10^ is 1024.
<p>H~2~O is a liquid. 2<sup>10</sup> is 1024.</p>
var md = goldmark.New(superscript.Enable)
var source = []byte("H~2~O is a liquid. 2^10^ is 1024.")
err := md.Convert(source, os.Stdout)
if err != nil {
log.Fatal(err)
}