mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
markup/goldmark: Rename extension struct
This commit is contained in:
parent
228126b7f5
commit
afd63bf7d5
1 changed files with 4 additions and 4 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue