Skip to main content

syntax_errors

Function syntax_errors 

Source
pub fn syntax_errors(doc: &Node, input: &str) -> Vec<String>
Expand description

The syntax errors markdoc recorded in doc (and the partials spliced into it), as file:line: message, file being input for the document itself.

Markdoc does not fail a parse over a syntax error (only past its depth limits): an unclosed tag, a stray closing tag, a tag it cannot read, or frontmatter that is not YAML stay in the tree as errors, and what they held renders as Markdoc decides (an unreadable tag not at all). The renderer says so on stderr; a corpus’s lint is what fails a build on them.