Expand description
Helper functions dealing with HTML conversion.
Traits§
- HtmlStr
- This trait deals with tagged HTML
&strdata. - Html
String - This trait deals with tagged HTML
Stringdata.
Functions§
- assign_
heading_ ids - Assigns an
idattribute to every heading inhtmlthat doesn’t already have one, according topolicy. A heading’s existingid— whether an explicit Markdown{#id}heading attribute or one another renderer already assigned (e.g. RST’s own auto-ids) — always wins and is never touched. Markup-language agnostic: this runs on the final rendered HTML, aftermarkup_to_htmlhas already produced<h1>-<h6>tags, regardless of which renderer produced them. - rewrite_
links - A helper function that scans the input HTML document in
html_inputfor HTML hyperlinks. When it finds a relative URL (local link), it analyzes it’s path. Depending on thelocal_link_kindconfiguration, relative local links are converted into absolute local links and eventually rebased.