diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-03 15:58:15 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-03 15:58:15 +0200 |
| commit | d59109e8fffa1d0b03234329e12f5d3e578804e8 (patch) | |
| tree | fe7453da6f2ae327993e5ca6436ddc6a448a2c41 /src/library/math | |
| parent | f77f1f61bf05ae506689be3c40252c5807276280 (diff) | |
Support recursive show rules
Diffstat (limited to 'src/library/math')
| -rw-r--r-- | src/library/math/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library/math/mod.rs b/src/library/math/mod.rs index 7b4998ca..9709c00c 100644 --- a/src/library/math/mod.rs +++ b/src/library/math/mod.rs @@ -36,6 +36,10 @@ impl MathNode { } impl Show for MathNode { + fn unguard(&self, _: Selector) -> ShowNode { + Self { formula: self.formula.clone(), ..*self }.pack() + } + fn encode(&self) -> Dict { dict! { "formula" => Value::Str(self.formula.clone()), |
