Module comrak::html

source ·
Expand description

The HTML renderer for the CommonMark AST, as well as helper functions.

Structs§

  • Converts header Strings to canonical, unique, but still human-readable, anchors.

Functions§

  • Writes buffer to output, escaping anything that could be interpreted as an HTML tag.
  • Writes buffer to output, escaping in a manner appropriate for URLs in HTML attributes.
  • Formats an AST as HTML, modified by the given options.
  • Formats an AST as HTML, modified by the given options. Accepts custom plugins.
  • Writes an opening HTML tag, using an iterator to enumerate the attributes. Note that attribute values are automatically escaped.