pub fn parse(source: &str) -> Result<Document, Error>
Parse into a document tree and resolve sections and references.
Returns an error if parsing fails.