pub fn parse_document_with_max_depth(
input: &str,
max_depth: usize,
) -> Result<Vec<Link>, ParseFailure>Expand description
Parses a document the way parse_document_with_diagnostics does, refusing
links nested deeper than max_depth. Every parenthesized group and every
indentation level is one level of nesting.