Documentation
¶
Overview ¶
Package html defines lightweight HTML node structures and rendering utilities used by the Markdown renderer.
This package is independent of Markdown semantics and contains only HTML-specific representation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attributes ¶
Attributes represents a set of HTML element attributes.
func (Attributes) SortedKeys ¶
func (a Attributes) SortedKeys() []string
SortedKeys returns the attribute keys in deterministic order.
type Element ¶
type Element struct {
Tag string
Attr Attributes
Children []Node
}
type Fragment ¶
type Fragment struct {
Children []Node
}
Fragment is a container node that renders its children in sequence without introducing additional markup.
type VoidElement ¶
type VoidElement struct {
Tag string
Attr Attributes
}
Click to show internal directories.
Click to hide internal directories.