...
1 package ast
2
3 import (
4 gast "github.com/yuin/goldmark/ast"
5 )
6
7
8
9 type DefinitionList struct {
10 gast.BaseBlock
11 Offset int
12 TemporaryParagraph *gast.Paragraph
13 }
14
15
16 func (n *DefinitionList) Dump(source []byte, level int) {
17 gast.DumpHelper(n, source, level, nil, nil)
18 }
19
20
21 var KindDefinitionList = gast.NewNodeKind("DefinitionList")
22
23
24 func (n *DefinitionList) Kind() gast.NodeKind {
25 return KindDefinitionList
26 }
27
28
29 func NewDefinitionList(offset int, para *gast.Paragraph) *DefinitionList {
30 return &DefinitionList{
31 Offset: offset,
32 TemporaryParagraph: para,
33 }
34 }
35
36
37
38 type DefinitionTerm struct {
39 gast.BaseBlock
40 }
41
42
43 func (n *DefinitionTerm) Dump(source []byte, level int) {
44 gast.DumpHelper(n, source, level, nil, nil)
45 }
46
47
48 var KindDefinitionTerm = gast.NewNodeKind("DefinitionTerm")
49
50
51 func (n *DefinitionTerm) Kind() gast.NodeKind {
52 return KindDefinitionTerm
53 }
54
55
56 func NewDefinitionTerm() *DefinitionTerm {
57 return &DefinitionTerm{}
58 }
59
60
61
62 type DefinitionDescription struct {
63 gast.BaseBlock
64 IsTight bool
65 }
66
67
68 func (n *DefinitionDescription) Dump(source []byte, level int) {
69 gast.DumpHelper(n, source, level, nil, nil)
70 }
71
72
73 var KindDefinitionDescription = gast.NewNodeKind("DefinitionDescription")
74
75
76 func (n *DefinitionDescription) Kind() gast.NodeKind {
77 return KindDefinitionDescription
78 }
79
80
81 func NewDefinitionDescription() *DefinitionDescription {
82 return &DefinitionDescription{}
83 }
84
View as plain text