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
- Host: GitHub
- URL: https://github.com/nemunaire/goldmark-superscript
- Owner: nemunaire
- License: mit
- Created: 2023-08-17T13:25:28.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-17T13:26:57.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T15:51:33.861Z (4 months ago)
- Topics: golang, goldmark, goldmark-extension, markdown
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
}
```