use ;
use parse_content;
use Parser;
/// Parses a string slice into a `Document` AST.
///
/// This is the main entry point for the parser.
///
/// # Arguments
///
/// * `document` - A string slice representing the source document to be parsed.
///
/// # Returns
///
/// A `Result` containing the parsed `Document` or an `Ast2Error` on failure.