markup/goldmark: Rename extension struct
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 26 Feb 2022 09:32:14 +0000 (10:32 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 26 Feb 2022 20:54:36 +0000 (21:54 +0100)
markup/goldmark/codeblocks/render.go

index 59d142e23d0f0e041ede61ee220c63e7343a2b10..b598763d360a135c98ca4e9e2ae7921d252ec190 100644 (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),