Expand description
The HTML renderer for the CommonMark AST, as well as helper functions.
Functionsยง
- escape
- Writes buffer to output, escaping anything that could be interpreted as an HTML tag.
- escape_
href - Writes buffer to output, escaping in a manner appropriate for URLs in HTML attributes.
- format_
document - Formats an AST as HTML, modified by the given options.
- format_
document_ with_ plugins - Formats an AST as HTML, modified by the given options. Accepts custom plugins.
- write_
opening_ tag - Writes an opening HTML tag, using an iterator to enumerate the attributes. Note that attribute values are automatically escaped.