Skip to main content

Module ir

Module ir 

Source

Structs§

Block
BlockId
Book
BookId
DomPath
InlineMark
Metadata
ProtectedSpan
Resource
Section
SectionId
SpineItem
TextRun

Enums§

BlockKind
BookFormat
ProtectedSpanKind

Constants§

TEXT_NODE_PATH_BASE
Path component base for addressing text nodes. Element children are indexed 0, 1, 2, …; the N-th non-whitespace text node inside an element is addressed as TEXT_NODE_PATH_BASE + N in the final path component. The offset keeps text-node addresses from ever colliding with element indices. Reader and writer must count the same set of text nodes (non-whitespace after entity decoding) for paths to align.