Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTitles = map[string]string{
"note": "Note",
"tip": "Tip",
"info": "Info",
"danger": "Danger",
"warning": "Warning",
"important": "Important",
"caution": "Caution",
"gh-note": "Note",
"gh-tip": "Tip",
"gh-important": "Important",
"gh-warning": "Warning",
"gh-caution": "Caution",
}
DefaultTitles maps aside types to their default display titles.
View Source
var KindAsideBlock = gast.NewNodeKind("AsideBlock")
KindAsideBlock is the NodeKind for AsideBlock.
View Source
var ValidTypes = map[string]bool{ "note": true, "tip": true, "info": true, "danger": true, "warning": true, "important": true, "caution": true, "gh-note": true, "gh-tip": true, "gh-important": true, "gh-warning": true, "gh-caution": true, }
ValidTypes lists all valid aside types.
Functions ¶
func NewRenderer ¶
func NewRenderer() renderer.NodeRenderer
NewRenderer returns a new aside renderer.
Types ¶
type AsideBlock ¶
type AsideBlock struct {
gast.BaseBlock
AsideType string // "note", "tip", etc.
Title string // Custom title or empty for default
Icon string // Explicit Lucide icon name (optional; overrides the type icon)
}
AsideBlock is an AST node representing an aside block.
func (*AsideBlock) Dump ¶
func (n *AsideBlock) Dump(source []byte, level int)
Dump implements ast.Node.Dump.
func (*AsideBlock) GetDisplayTitle ¶
func (n *AsideBlock) GetDisplayTitle() string
GetDisplayTitle returns the custom title or the default title for the type.
Click to show internal directories.
Click to hide internal directories.