Debian Codegraph @

extension/ast/strikethrough.go

raw symbols SCIP
1 // Package ast defines AST nodes that represents extension's elements
2 package ast
3
4 import (
5 gast "github.com/yuin/goldmark/ast"
6 )
7
8 // A Strikethrough struct represents a strikethrough of GFM text.
9 type Strikethrough struct {
10 gast.BaseInline
11 }
12
13 // Dump implements Node.Dump.
14 func (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.
19 var KindStrikethrough = gast.NewNodeKind("Strikethrough")
20
21 // Kind implements Node.Kind.
22 func (n *Strikethrough) Kind() gast.NodeKind {
23 return KindStrikethrough
24 }
25
26 // NewStrikethrough returns a new Strikethrough node.
27 func NewStrikethrough() *Strikethrough {
28 return &Strikethrough{}
29 }