Skip to main content

parse_source_with_diagnostics

Function parse_source_with_diagnostics 

Source
pub fn parse_source_with_diagnostics(
    content: &str,
    filter: &CodeBlockFilter,
) -> MdtResult<(Vec<Block>, Vec<ParseDiagnostic>)>
Expand description

Parse source code content and return blocks together with diagnostics. When filter is enabled, HTML comments inside fenced code blocks (within doc comments) are excluded from scanning.