Expand description
Public API of markdown-rs.
This module exposes primarily to_html().
It also exposes to_html_with_options() and to_mdast().
to_html()— safe way to transform (untrusted?) markdown into HTMLto_html_with_options()— liketo_htmlbut lets you configure how markdown is turned into HTML, such as allowing dangerous HTML or turning on/off different constructs (GFM, MDX, and the like)to_mdast()— turn markdown into a syntax tree
§Features
default— nothing is enabled by defaultlog— enable logging (includesdep:log); you can show logs withRUST_LOG=debugserde— enable serde to serialize ASTs and configuration (includesdep:serde)
Modules§
Structs§
- Compile
Options - Configuration that describes how to compile to HTML.
- Constructs
- Control which constructs are enabled.
- Options
- Configuration that describes how to parse from markdown and compile to HTML.
- Parse
Options - Configuration that describes how to parse from markdown.
Enums§
- Line
Ending - Type of line endings in markdown.
- MdxExpression
Kind - Expression kind.
- MdxSignal
- Signal used as feedback when parsing MDX ESM/expressions.
Functions§
- to_html
- Turn markdown into HTML.
- to_
html_ with_ options - Turn markdown into HTML, with configuration.
- to_
mdast - Turn markdown into a syntax tree.
Type Aliases§
- MdxEsm
Parse - Signature of a function that parses MDX ESM.
- MdxExpression
Parse - Signature of a function that parses MDX expressions.