Go to file
2023-08-17 15:24:43 +02:00
ast.go Initial commit 2023-08-17 15:24:43 +02:00
extend_test.go Initial commit 2023-08-17 15:24:43 +02:00
extend.go Initial commit 2023-08-17 15:24:43 +02:00
go.mod Initial commit 2023-08-17 15:24:43 +02:00
go.sum Initial commit 2023-08-17 15:24:43 +02:00
LICENSE Initial commit 2023-08-17 15:24:43 +02:00
parser.go Initial commit 2023-08-17 15:24:43 +02:00
README.md Initial commit 2023-08-17 15:24:43 +02:00
render.go Initial commit 2023-08-17 15:24:43 +02:00

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)
}