diff options
Diffstat (limited to 'markup/goldmark/internal/extensions/attributes/attributes.go')
-rw-r--r-- | markup/goldmark/internal/extensions/attributes/attributes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markup/goldmark/internal/extensions/attributes/attributes.go b/markup/goldmark/internal/extensions/attributes/attributes.go index 60ae609ec..feb3d915b 100644 --- a/markup/goldmark/internal/extensions/attributes/attributes.go +++ b/markup/goldmark/internal/extensions/attributes/attributes.go @@ -56,7 +56,7 @@ func (a *attrParser) Continue(node ast.Node, reader text.Reader, pc parser.Conte func (a *attrParser) Open(parent ast.Node, reader text.Reader, pc parser.Context) (ast.Node, parser.State) { if attrs, ok := parser.ParseAttributes(reader); ok { // add attributes - var node = &attributesBlock{ + node := &attributesBlock{ BaseBlock: ast.BaseBlock{}, } for _, attr := range attrs { @@ -95,7 +95,7 @@ func (a *attributesBlock) Kind() ast.NodeKind { type transformer struct{} func (a *transformer) Transform(node *ast.Document, reader text.Reader, pc parser.Context) { - var attributes = make([]ast.Node, 0, 500) + attributes := make([]ast.Node, 0, 500) ast.Walk(node, func(node ast.Node, entering bool) (ast.WalkStatus, error) { if entering && node.Kind() == kindAttributesBlock { // Attributes for fenced code blocks are handled in their own extension, |