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