diff --git a/src/core/src/converter.rs b/src/core/src/converter.rs index 4f87c3e..2646152 100644 --- a/src/core/src/converter.rs +++ b/src/core/src/converter.rs @@ -14,6 +14,8 @@ pub fn convert(root: &Content) -> Node { let styles = typst::foundations::StyleChain::default(); let mut converter = ContentConverter { styles: styles, + parent: None, + position: None }; root.accept(&mut converter) } @@ -21,6 +23,8 @@ pub fn convert(root: &Content) -> Node { #[derive(Clone)] pub struct ContentConverter<'a> { pub styles: typst::foundations::StyleChain<'a>, + pub parent: Option, + pub position: Option, } impl ContentVisitor for ContentConverter<'_> {