Module mdbook::utils[][src]

Modules

fs

Traits

RangeArgument

Functions

collapse_whitespace

Replaces multiple consecutive whitespace characters with a single space character.

id_from_content

Generate an ID for use with anchors which is derived from a "normalised" string.

log_backtrace

Prints a "backtrace" of some Error.

normalize_id

Convert the given string to a valid HTML element ID

render_markdown

Wrapper around the pulldown-cmark parser for rendering markdown to HTML.

take_lines

Take a range of lines from a string.