diff options
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs index 3e461150..5aeedf6f 100644 --- a/library/src/math/mod.rs +++ b/library/src/math/mod.rs @@ -252,6 +252,12 @@ impl LayoutMath for Content { } if let Some(styled) = self.to::<StyledNode>() { + if styled.map.contains(TextNode::FAMILY) { + let frame = ctx.layout_content(self)?; + ctx.push(FrameFragment::new(ctx, frame).with_spaced(true)); + return Ok(()); + } + let prev_map = std::mem::replace(&mut ctx.map, styled.map.clone()); let prev_size = ctx.size; ctx.map.apply(prev_map.clone()); |
