Fix docs
This commit is contained in:
parent
1a4509a3e8
commit
9788c89266
|
@ -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{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue