mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 23:52:04 -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 (
|
type (
|
||||||
diagrams struct{}
|
codeBlocksExtension struct{}
|
||||||
htmlRenderer struct{}
|
htmlRenderer struct{}
|
||||||
)
|
)
|
||||||
|
|
||||||
func New() goldmark.Extender {
|
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(
|
m.Parser().AddOptions(
|
||||||
parser.WithASTTransformers(
|
parser.WithASTTransformers(
|
||||||
util.Prioritized(&Transformer{}, 100),
|
util.Prioritized(&Transformer{}, 100),
|
||||||
|
|
Loading…
Reference in a new issue