Module mdbook::utils [−][src]
Modules
Functions
Replaces multiple consecutive whitespace characters with a single space character.
Generate an ID for use with anchors which is derived from a “normalised” string.
Prints a “backtrace” of some Error
.
Convert the given string to a valid HTML element ID. The only restriction is that the ID must not contain any ASCII whitespace.
Wrapper around the pulldown-cmark parser for rendering markdown to HTML.
Take anchored lines from a string. Lines containing anchor are ignored.
Take a range of lines from a string.
Keep lines between the anchor comments specified as-is.
For any lines not between the anchors, include them but use #
at the beginning. This will
hide the lines from initial display but include them when expanding the code snippet or testing
with rustdoc.
Keep lines contained within the range specified as-is.
For any lines not in the range, include them but use #
at the beginning. This will hide the
lines from initial display but include them when expanding the code snippet or testing with
rustdoc.