Function rustdoc::html::markdown::markdown_summary_with_limit [−][src]
fn markdown_summary_with_limit(md: &str, length_limit: usize) -> (String, bool)
Renders a subset of Markdown in the first paragraph of the provided Markdown.
- Italics, bold, and
inline codestyles are rendered. - Headings and links are stripped (though the text is rendered).
- HTML, code blocks, and everything else are ignored.
Returns a tuple of the rendered HTML string and whether the output was shortened
due to the provided length_limit.