1
Fork 0
This commit is contained in:
Jan-Lukas Else 2021-05-22 18:25:20 +02:00
parent 1a4509a3e8
commit 9788c89266
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import (
gast "github.com/yuin/goldmark/ast" gast "github.com/yuin/goldmark/ast"
) )
// A Mark struct represents a strikethrough of GFM text. // A Mark struct represents a mark.
type Mark struct { type Mark struct {
gast.BaseInline gast.BaseInline
} }
@ -15,7 +15,7 @@ func (n *Mark) Dump(source []byte, level int) {
gast.DumpHelper(n, source, level, nil, nil) gast.DumpHelper(n, source, level, nil, nil)
} }
// KindMark is a NodeKind of the Strikethrough node. // KindMark is a NodeKind of the Mark node.
var KindMark = gast.NewNodeKind("Mark") var KindMark = gast.NewNodeKind("Mark")
// Kind implements Node.Kind. // Kind implements Node.Kind.
@ -23,7 +23,7 @@ func (n *Mark) Kind() gast.NodeKind {
return KindMark return KindMark
} }
// NewMark returns a new Strikethrough node. // NewMark returns a new Mark node.
func NewMark() *Mark { func NewMark() *Mark {
return &Mark{} return &Mark{}
} }