rustdoc::html::markdown

Function rust_code_blocks

Source
pub(crate) fn rust_code_blocks(
    md: &str,
    extra_info: &ExtraInfo<'_>,
) -> Vec<RustCodeBlock>
Expand description

Returns a range of bytes for each code block in the markdown that is tagged as rust or untagged (and assumed to be rust).