An open API service indexing awesome lists of open source software.

https://github.com/nemunaire/goldmark-superscript

This goldmark parser extension adds support for superscript in markdown, implements the pandoc superscript extension
https://github.com/nemunaire/goldmark-superscript

golang goldmark goldmark-extension markdown

Last synced: 2 months ago
JSON representation

This goldmark parser extension adds support for superscript in markdown, implements the pandoc superscript extension

Awesome Lists containing this project

README

        

# goldmark-superscript

[GoldMark](https://github.com/yuin/goldmark/) superscript extension.

This implements the [`superscript`](https://pandoc.org/MANUAL.html#extension-superscript-subscript) of pandoc.

```markdown
H~2~O is a liquid. 2^10^ is 1024.
```

```html

H~2~O is a liquid. 210 is 1024.


```

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