Skip to main content

Crate rdx_transform

Crate rdx_transform 

Source

Structs§

ArchivedAttributeNode
An archived AttributeNode
ArchivedCodeBlockNode
An archived CodeBlockNode
ArchivedComponentNode
An archived ComponentNode
ArchivedErrorNode
An archived ErrorNode
ArchivedFootnoteNode
An archived FootnoteNode
ArchivedImageNode
An archived ImageNode
ArchivedLinkNode
An archived LinkNode
ArchivedPoint
An archived Point
ArchivedPosition
An archived Position
ArchivedRoot
An archived Root
ArchivedStandardBlockNode
An archived StandardBlockNode
ArchivedTextNode
An archived TextNode
ArchivedVariableNode
An archived VariableNode
AttributeNode
A single attribute with its own positional data.
AttributeNodeResolver
The resolver for an archived AttributeNode
AutoSlug
Generates URL-safe slugs for headings and sets the id field.
CodeBlockNode
A fenced code block with optional language and meta string.
CodeBlockNodeResolver
The resolver for an archived CodeBlockNode
ComponentNode
An RDX component node.
ComponentNodeResolver
The resolver for an archived ComponentNode
ErrorNode
An explicit error node for host-level error boundaries.
ErrorNodeResolver
The resolver for an archived ErrorNode
FootnoteNode
A footnote node (definition or reference).
FootnoteNodeResolver
The resolver for an archived FootnoteNode
ImageNode
An image node with URL, optional title, and alt text.
ImageNodeResolver
The resolver for an archived ImageNode
LinkNode
A link node with URL and optional title.
LinkNodeResolver
The resolver for an archived LinkNode
Pipeline
A composable pipeline that parses an RDX document and runs a chain of transforms.
Point
PointResolver
The resolver for an archived 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.
PositionResolver
The resolver for an archived Position
Root
The root of an RDX document.
RootResolver
The resolver for an archived Root
StandardBlockNode
A standard CommonMark block node.
StandardBlockNodeResolver
The resolver for an archived StandardBlockNode
TableOfContents
Generates a table of contents from document headings and inserts it as a <TableOfContents> component node.
TextNode
A literal text node.
TextNodeResolver
The resolver for an archived TextNode
VariableNode
A variable interpolation node.
VariableNodeResolver
The resolver for an archived VariableNode

Enums§

ArchivedAttributeValue
An archived AttributeValue
ArchivedNode
An archived Node
ArchivedRootType
An archived RootType
AttributeValue
Supported attribute value types.
AttributeValueResolver
The resolver for an archived AttributeValue
Node
A union of all possible RDX nodes.
NodeResolver
The resolver for an archived Node
RootType
RootTypeResolver
The resolver for an archived RootType

Traits§

Transform
A transform that operates on an RDX AST in place.

Functions§

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.