mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
18 lines
499 B
Go
18 lines
499 B
Go
|
|
package markdown
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/yuin/goldmark"
|
||
|
|
"github.com/yuin/goldmark/renderer"
|
||
|
|
"github.com/yuin/goldmark/util"
|
||
|
|
|
||
|
|
"github.com/apricote/releaser-pleaser/internal/markdown/extensions"
|
||
|
|
"github.com/apricote/releaser-pleaser/internal/markdown/renderer/markdown"
|
||
|
|
)
|
||
|
|
|
||
|
|
func New() goldmark.Markdown {
|
||
|
|
return goldmark.New(
|
||
|
|
goldmark.WithExtensions(extensions.Section),
|
||
|
|
goldmark.WithRenderer(renderer.NewRenderer(renderer.WithNodeRenderers(util.Prioritized(markdown.NewRenderer(), 1)))),
|
||
|
|
)
|
||
|
|
}
|