markup/goldmark: Rename extension struct

This commit is contained in:
Bjørn Erik Pedersen 2022-02-26 10:32:14 +01:00
parent 228126b7f5
commit afd63bf7d5

View file

@ -29,15 +29,15 @@ import (
)
type (
diagrams struct{}
htmlRenderer struct{}
codeBlocksExtension struct{}
htmlRenderer struct{}
)
func New() goldmark.Extender {
return &diagrams{}
return &codeBlocksExtension{}
}
func (e *diagrams) Extend(m goldmark.Markdown) {
func (e *codeBlocksExtension) Extend(m goldmark.Markdown) {
m.Parser().AddOptions(
parser.WithASTTransformers(
util.Prioritized(&Transformer{}, 100),