Skip to main content

load

Function load 

Source
pub fn load(content: &str) -> DocumentResult<Value>
Expand description

Parse content as CommonMark into the section tree described above.

CommonMark has no invalid-input production — every UTF-8 string is some sequence of blocks — so this fails only where afdata declines to answer: a bare carriage return, or block nesting more than 48 levels deep. An empty string yields an empty preamble and no sections.