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.

Never fails on content: CommonMark has no invalid-input production — every UTF-8 string is some sequence of blocks — so the result is Ok, including for an empty string (which yields an empty preamble and no sections).