feat: support top-level properties drawer (#78)
This commit is contained in:
parent
2f31fd4b10
commit
9b8aec02a4
5 changed files with 31 additions and 9 deletions
|
|
@ -57,6 +57,9 @@ impl Document {
|
|||
pub fn first_headline(&self) -> Option<Headline> {
|
||||
support::child(&self.syntax)
|
||||
}
|
||||
pub fn properties(&self) -> Option<PropertyDrawer> {
|
||||
support::child(&self.syntax)
|
||||
}
|
||||
pub fn last_headline(&self) -> Option<Headline> {
|
||||
super::last_child(&self.syntax)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue