[go: up one dir, main page]

comrak

Module html

Source
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.