https://github.com/13rac1/goldmark-hashtag
A Hashtag extension for the goldmark markdown parser.
https://github.com/13rac1/goldmark-hashtag
goldmark goldmark-extension hashtags markdown
Last synced: 2 months ago
JSON representation
A Hashtag extension for the goldmark markdown parser.
- Host: GitHub
- URL: https://github.com/13rac1/goldmark-hashtag
- Owner: 13rac1
- License: mit
- Created: 2020-12-20T15:59:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-20T23:14:10.000Z (over 4 years ago)
- Last Synced: 2025-03-14T21:12:59.083Z (2 months ago)
- Topics: goldmark, goldmark-extension, hashtags, markdown
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# goldmark-hashtag
goldmark-hashtag is an extension for the [goldmark][goldmark] library to handle
`#example` hashtags providing a Hashtag AST type.[goldmark]: http://github.com/yuin/goldmark
## Demo
This markdown:
```md
# Hello goldmark-hashtag#example
```With the default configuration, becomes this HTML:
```html
Hello goldmark-hashtag
```### Installation
```bash
go get github.com/13rac1/goldmark-hashtag
```## Usage
```go
markdown := goldmark.New(
goldmark.WithExtensions(
hashtag.Extension,
),
)
var buf bytes.Buffer
if err := markdown.Convert([]byte(source), &buf); err != nil {
panic(err)
}
fmt.Print(buf)
}
```## License
MIT
## Author
Brad Erickson