strikethrough.go

 1// Package ast defines AST nodes that represents extension's elements
 2package ast
 3
 4import (
 5	gast "github.com/yuin/goldmark/ast"
 6)
 7
 8// A Strikethrough struct represents a strikethrough of GFM text.
 9type Strikethrough struct {
10	gast.BaseInline
11}
12
13// Dump implements Node.Dump.
14func (n *Strikethrough) Dump(source []byte, level int) {
15	gast.DumpHelper(n, source, level, nil, nil)
16}
17
18// KindStrikethrough is a NodeKind of the Strikethrough node.
19var KindStrikethrough = gast.NewNodeKind("Strikethrough")
20
21// Kind implements Node.Kind.
22func (n *Strikethrough) Kind() gast.NodeKind {
23	return KindStrikethrough
24}
25
26// NewStrikethrough returns a new Strikethrough node.
27func NewStrikethrough() *Strikethrough {
28	return &Strikethrough{}
29}