https://github.com/13rac1/goldmark-embed
A Video embed extension for the goldmark markdown parser.
https://github.com/13rac1/goldmark-embed
goldmark goldmark-extension markdown video-embed
Last synced: about 1 month ago
JSON representation
A Video embed extension for the goldmark markdown parser.
- Host: GitHub
- URL: https://github.com/13rac1/goldmark-embed
- Owner: 13rac1
- License: mit
- Created: 2020-12-12T03:51:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-04T17:35:02.000Z (about 3 years ago)
- Last Synced: 2025-04-10T07:54:53.966Z (about 1 month ago)
- Topics: goldmark, goldmark-extension, markdown, video-embed
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# goldmark-embed
goldmark-embed is an extension for the [goldmark][goldmark] library that extends
the Markdown `![]()` image embed syntax to support additional media formats.[goldmark]: http://github.com/yuin/goldmark
YouTube only at first.
## Demo
This markdown:
```md
# Hello goldmark-embed
```Becomes this HTML:
```html
Hello goldmark-embed
```### Installation
```bash
go get github.com/13rac1/goldmark-embed
```## Usage
```go
markdown := goldmark.New(
goldmark.WithExtensions(
embed.Embed,
),
)
var buf bytes.Buffer
if err := markdown.Convert([]byte(source), &buf); err != nil {
panic(err)
}
fmt.Print(buf)
}
```## TODO
* Embed Options
* Additional Data Sources## License
MIT
## Author
Brad Erickson