feat(orgize): export indextree crate
This commit is contained in:
parent
fdb31c783c
commit
b84c135e26
|
@ -228,6 +228,9 @@ mod parsers;
|
|||
|
||||
mod error;
|
||||
|
||||
// Re-export of the indextree crate.
|
||||
pub use indextree;
|
||||
|
||||
pub use config::ParseConfig;
|
||||
pub use elements::Element;
|
||||
pub use error::OrgizeError;
|
||||
|
|
|
@ -34,6 +34,18 @@ impl HeadlineNode {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn node(self) -> NodeId {
|
||||
self.node
|
||||
}
|
||||
|
||||
pub fn title_node(self) -> NodeId {
|
||||
self.title_node
|
||||
}
|
||||
|
||||
pub fn section_node(self) -> Option<NodeId> {
|
||||
self.section_node
|
||||
}
|
||||
|
||||
pub fn level(self) -> usize {
|
||||
self.level
|
||||
}
|
||||
|
@ -275,7 +287,7 @@ impl HeadlineNode {
|
|||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub struct DocumentNode {
|
||||
pub(crate) section_node: Option<NodeId>,
|
||||
section_node: Option<NodeId>,
|
||||
}
|
||||
|
||||
impl DocumentNode {
|
||||
|
|
Loading…
Reference in a new issue