Skip to main content

Crate ox_content_ast

Crate ox_content_ast 

Source
Expand description

AST definitions for Ox Content Markdown parser.

This crate defines the Abstract Syntax Tree (AST) for Markdown documents, designed to be compatible with mdast (Markdown AST) specification while providing efficient arena-based allocation.

Structs§

BlockQuote
Block quote.
Break
Line break.
CodeBlock
Code block (fenced or indented).
Definition
Link/image reference definition.
Delete
Strikethrough (GFM extension).
Document
Root node of a Markdown document.
Emphasis
Emphasis (italic).
FootnoteDefinition
Footnote definition (GFM extension).
FootnoteReference
Footnote reference (GFM extension).
Heading
Heading node (h1-h6).
Html
HTML block.
Image
Image.
InlineCode
Inline code.
Link
Link.
List
List (ordered or unordered).
ListItem
List item.
Paragraph
Paragraph node.
Position
Position in source text with line and column information.
Span
A span representing a range in the source text.
Strong
Strong emphasis (bold).
Table
Table (GFM extension).
TableCell
Table cell.
TableRow
Table row.
Text
Plain text.
ThematicBreak
Thematic break (horizontal rule).

Enums§

AlignKind
Column alignment in tables.
Node
A Markdown AST node.

Traits§

Visit
Visitor trait for traversing the Markdown AST.

Functions§

walk_block_quote
Walks through a block quote’s children.
walk_delete
Walks through strikethrough children.
walk_document
Walks through a document’s children.
walk_emphasis
Walks through emphasis children.
walk_footnote_definition
Walks through a footnote definition’s children.
walk_heading
Walks through a heading’s children.
walk_link
Walks through a link’s children.
walk_list
Walks through a list’s children.
walk_list_item
Walks through a list item’s children.
walk_node
Walks through a node, dispatching to the appropriate visit method.
walk_paragraph
Walks through a paragraph’s children.
walk_strong
Walks through strong emphasis children.
walk_table
Walks through a table’s children.
walk_table_cell
Walks through a table cell’s children.
walk_table_row
Walks through a table row’s children.