feat: block parsing

This commit is contained in:
PoiScript 2023-12-13 01:07:11 +08:00
parent b2123d1acd
commit 27de7ee68c
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
10 changed files with 208 additions and 168 deletions

View file

@ -160,6 +160,9 @@ impl Headline {
pub fn planning(&self) -> Option<Planning> {
support::child(&self.syntax)
}
pub fn properties(&self) -> Option<PropertyDrawer> {
support::child(&self.syntax)
}
pub fn headlines(&self) -> AstChildren<Headline> {
support::children(&self.syntax)
}