The html to parse.
The options for which level(s) for headers to parse.
The original html but with now <br>
tags after headers.
Cleans all the ids in a given html string, making sure no duplicate ids are found.
If duplicates are found a number is appended, e.g. "dup" -> "dup2".
The html to clean of ids.
An optional formatter that takes an id and number (>=2) that returns the new id. NOTE: This does not check to ensure you don't return re-duplicate ids. It assumes you take the number and use it.
A new html string with no duplicate ids.
Ensures a value is a string formatter function.
The value to ensure.
A default function to use in case of no match.
A valid function.
Polyfill for String.repeat.
String to repeat.
Number of times to repeat.
The str repeated count times.
Wraps a flat HTML structure in sections and divs based on h1, h2, etc levels.
The already parsed html to parse. Probably from a markdown source.
Options for how to format the sections.
Function that returns the class attribute for new content divs.
The list of level(s) to sectionize., e.g. [2, 3] for h2, h3.
Push down
Function that returns the class attribute for new sections.
A new html string from the source, now wrapped in sections.
Generated using TypeDoc
Inserts
<br>
tags into<h#>
header tags before any<em>
tags.