Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KindDetailsBlock = gast.NewNodeKind("DetailsBlock")
KindDetailsBlock is the NodeKind for DetailsBlock.
Functions ¶
func NewRenderer ¶
func NewRenderer() renderer.NodeRenderer
NewRenderer returns a new details renderer.
Types ¶
type DetailsBlock ¶
type DetailsBlock struct {
gast.BaseBlock
Summary string // The summary/title text
Open bool // Whether the details are open by default
}
DetailsBlock is an AST node representing a collapsible details block.
func (*DetailsBlock) Dump ¶
func (n *DetailsBlock) Dump(source []byte, level int)
Dump implements ast.Node.Dump.
func (*DetailsBlock) Kind ¶
func (n *DetailsBlock) Kind() gast.NodeKind
Kind implements ast.Node.Kind.
Click to show internal directories.
Click to hide internal directories.