Expand description
HTML processing utilities for typub semantic IR v2.
Structs§
- Serialize
Options - Options for platform-specific HTML serialization.
Enums§
- Serialize
Rule - Platform-specific serialization rules.
Functions§
- admonition_
text - Create a basic admonition block with paragraph content.
- asset_
variant - Create an image asset variant helper.
- bullet_
list_ text - Create a bullet list from plain text items.
- code_
block - Create a code block with optional language.
- code_
block_ highlighted - Create a code block with pre-rendered highlighted HTML.
- divider
- Create a divider block.
- document
- Build a document with default metadata and no footnotes.
- document_
full - Build a document with explicit footnotes and assets.
- document_
to_ html - Serialize a full document to HTML using default options.
- document_
to_ html_ with_ options - Serialize a full document to HTML using custom options.
- document_
with_ assets - Build a document with explicit assets.
- empty_
attrs - Empty passthrough map helper.
- escape_
html_ attr - Escape attribute values for safe HTML embedding.
- escape_
html_ text - Escape text content for safe HTML embedding.
- heading_
text - Create a heading block from text.
- image
- Build an image block and its backing remote image asset.
- image_
marker - Build an image block + local-path image asset (legacy ImageMarker-equivalent fixture).
- inlines_
text - Extract plain text from inlines.
- inlines_
to_ html - Serialize inlines to HTML with document asset context and default options.
- inlines_
to_ html_ with_ options - Serialize inlines to HTML with document asset context and custom options.
- list_
item - Create a flow list item from inline content.
- math_
block_ latex - Create a math block with latex source.
- math_
inline_ latex - Create a math inline fragment with latex source.
- numbered_
list_ text - Create a numbered list from plain text items.
- paragraph
- Create a paragraph block from inline content.
- paragraph_
text - Create a paragraph block with plain text.
- parse_
html_ document - Parse HTML into v2
Document. - parse_
serialize_ rules - Parse serialization rules from a string slice array.
- quote_
text - Create a quote block with a single paragraph child.
- svg_
block - Create a block SVG payload.
- svg_
inline - Create an inline SVG payload.
- table_
cell - Create a simple table data cell from inline content.
- table_
text - Create a simple table from text headers and rows.
- task_
item - Create a task list item with paragraph content.
- task_
list - Create a task list block.
Type Aliases§
- Serialize
Rules - A set of serialization rules to apply.