Skip to main contentCrate rdx_transform
Source - AttributeNode
- A single attribute with its own positional data.
- AutoSlug
- Generates URL-safe slugs for headings and sets the
id field. - CodeBlockNode
- A fenced code block with optional language and meta string.
- ComponentNode
- An RDX component node.
- ErrorNode
- An explicit error node for host-level error boundaries.
- FootnoteNode
- A footnote node (definition or reference).
- ImageNode
- An image node with URL, optional title, and alt text.
- LinkNode
- A link node with URL and optional title.
- Pipeline
- A composable pipeline that parses an RDX document and runs a chain of transforms.
- Point
- Position
- Positional data mapping an AST node back to its source
.rdx file.
Line and column numbers are 1-indexed. Offsets are 0-indexed byte offsets. - Root
- The root of an RDX document.
- StandardBlockNode
- A standard CommonMark block node.
- TableOfContents
- Generates a table of contents from document headings and inserts it
as a
<TableOfContents> component node. - TextNode
- A literal text node.
- VariableNode
- A variable interpolation node.
- AttributeValue
- Supported attribute value types.
- Node
- A union of all possible RDX nodes.
- RootType
- Transform
- A transform that operates on an RDX AST in place.
- collect_text
- Extract plain text from a list of nodes (for generating slugs, alt text, etc).
- parse
- Parse an RDX document string into a compliant AST.
- parse_with_defaults
- Convenience: parse + apply built-in transforms (slug + toc).
- walk
- Walk all nodes immutably.
- walk_mut
- Walk all nodes in the AST, calling
f on each with a mutable reference.
Useful for implementing transforms.