pub fn parse(
bytes: &[u8],
context: ParseContext,
) -> Result<NoteDocument, NbError>Expand description
Parse bytes into a NoteDocument.
Permissive acceptance: returns Ok for every input that can
be losslessly partitioned, including the frozen W1 and
E1-E11 noncanonical forms. The only refusal cases at the
parse layer are [ParseErrorKind::MissingTitle] for
Todo/Bookmark files with no non-blank line. Notes are
permissive on empty source.