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 = func() map[string]bool { m := make(map[string]bool, len(fence.AsideTypes)) for _, t := range fence.AsideTypes { m[t] = true } return m }()
ValidTypes lists all valid aside types. The list lives in the fence package so ":::/aside" and sarde check-syntax recognize the same names.
Functions ¶
func NewRenderer ¶
func NewRenderer(style string) renderer.NodeRenderer
NewRenderer returns a new aside renderer. style selects the icon set; "galaxy" swaps note/tip/danger, any other value is classic.
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.