Record the list item indent depth in the context tree.

This commit is contained in:
Tom Alexander
2023-03-17 16:49:09 -04:00
parent 32897270a5
commit 88c974f8e4
5 changed files with 9 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ impl<'r, 's> ContextTree<'r, 's> {
ContextElement::PreviousElementNode(_) => {}
ContextElement::StartOfParagraph => {}
ContextElement::Context(_) => {}
ContextElement::ListItem(_) => {}
};
}
// TODO: Make this a specific error instead of just a generic MyError
@@ -99,6 +100,7 @@ pub enum ContextElement<'r, 's> {
ExitMatcherNode(ExitMatcherNode<'r>),
PreviousElementNode(PreviousElementNode<'s>),
Context(&'r str),
ListItem(usize),
StartOfParagraph,
}