Documentation
¶
Overview ¶
Package items implements granular content splitting (AGENTS #100): an html/markdown body is decomposed BEFORE insertion into a typed tree of Items (paragraph / heading / table / row / cell / image / link / page). Every Item carries its canonical content URL (internal/address) and its full path of indexed segments so a DOM/jQuery-like selector can address any leaf (see internal/selector).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
Base carries the scheme/platform/thread/msg prefix used to build each Item's canonical URL (internal/address).
type Item ¶
type Item struct {
Kind Kind
Seg address.Segment
Path []address.Segment
URL string
Body string
Src string // image src / link href target URL
Alt string
Href string
Children []*Item
}
Item is one node in the split tree. Path is the full list of indexed segments from the root (leaf last, e.g. body/p[3]/table[0]); URL is the canonical content URL for this node.