Skip to main content

Crate typub_html

Crate typub_html 

Source
Expand description

HTML processing utilities for typub semantic IR v2.

Structs§

SerializeOptions
Options for platform-specific HTML serialization.

Enums§

SerializeRule
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§

SerializeRules
A set of serialization rules to apply.