Fixing more errors.
This commit is contained in:
@@ -48,18 +48,18 @@ use crate::types::Section;
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
#[allow(dead_code)]
|
||||
pub fn document(input: &str) -> Res<&str, Document> {
|
||||
pub fn parse(input: &str) -> Res<&str, Document> {
|
||||
let global_settings = GlobalSettings::default();
|
||||
let initial_context = ContextElement::document_context();
|
||||
let initial_context = Context::new(&global_settings, List::new(&initial_context));
|
||||
let wrapped_input = OrgSource::new(input);
|
||||
let _foo = double_pass_document(&initial_context, wrapped_input);
|
||||
let _foo = document(&initial_context, wrapped_input);
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
#[allow(dead_code)]
|
||||
fn double_pass_document<'r, 's>(
|
||||
pub fn document<'r, 's>(
|
||||
context: RefContext<'_, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, Document<'s>> {
|
||||
|
||||
Reference in New Issue
Block a user