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

@@ -9,6 +9,7 @@ pub fn in_section<'r, 's, 'x>(context: Context<'r, 's>, section_name: &'x str) -
ContextElement::Context(name) if *name == section_name => return true,
ContextElement::Context(_) => {}
ContextElement::StartOfParagraph => {} // TODO: If we specialize this to bold then this would be a good spot to stop scanning
ContextElement::ListItem(_) => {}
}
}
false