Skip to main content

Module render

Module render 

Source
Expand description

Output rendering for the conversion pipeline.

This module defines the Renderer trait and provides the built-in MarkdownRenderer. Implement Renderer to produce custom output formats (HTML, plain text, or a custom Markdown dialect) and pass it to DocxToMarkdown::with_components.

Structs§

MarkdownRenderer
The built-in Markdown renderer.

Traits§

Renderer
Serializes a DocumentAst into a final output string.

Functions§

escape_html_attr
Escapes a string for safe use inside an HTML attribute value.
escape_markdown_link_destination
Escapes a string for use inside a Markdown link destination ([text](url)).
escape_markdown_link_text
Escapes a string for use inside Markdown link text ([text](url)).