diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-18 19:09:19 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-18 19:09:57 +0200 |
| commit | 3965e10281ea3c8754a1877c9f7e71c1930bf4c3 (patch) | |
| tree | e221b11692ac3af9f97c66625824e1c4e345c2eb /src/eval/mod.rs | |
| parent | 486f7b1bca15af3805ae1a8f63d72827f227a3d2 (diff) | |
Hack in ReX for now
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<MathNode> { type Output = Content; fn eval(&self, _: &mut Context, _: &mut Scopes) -> TypResult<Self::Output> { Ok(Content::show(library::math::MathNode { - formula: self.formula.clone(), - display: self.display, + formula: self.clone().map(|math| math.formula), + display: self.v.display, })) } } |
