From 3965e10281ea3c8754a1877c9f7e71c1930bf4c3 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 18 May 2022 19:09:19 +0200 Subject: Hack in ReX for now --- src/eval/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/eval/mod.rs') diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 79060137..12e2970e 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -211,13 +211,13 @@ impl Eval for RawNode { } } -impl Eval for MathNode { +impl Eval for Spanned { type Output = Content; fn eval(&self, _: &mut Context, _: &mut Scopes) -> TypResult { Ok(Content::show(library::math::MathNode { - formula: self.formula.clone(), - display: self.display, + formula: self.clone().map(|math| math.formula), + display: self.v.display, })) } } -- cgit v1.2.3