Skip to content

Commit

Permalink
markup/goldmark: Rename extension struct
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Feb 26, 2022
1 parent 228126b commit afd63bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions markup/goldmark/codeblocks/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit afd63bf

Please sign in to comment.