mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
The new renderer is actually published as a module and can be extended through the usual goldmark extensions.
15 lines
334 B
Go
15 lines
334 B
Go
package markdown
|
|
|
|
import (
|
|
markdown "github.com/teekennedy/goldmark-markdown"
|
|
"github.com/yuin/goldmark"
|
|
|
|
"github.com/apricote/releaser-pleaser/internal/markdown/extensions"
|
|
)
|
|
|
|
func New() goldmark.Markdown {
|
|
return goldmark.New(
|
|
goldmark.WithExtensions(extensions.Section),
|
|
goldmark.WithRenderer(markdown.NewRenderer()),
|
|
)
|
|
}
|