diff options
Diffstat (limited to 'src/library/structure')
| -rw-r--r-- | src/library/structure/heading.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/structure/heading.rs b/src/library/structure/heading.rs index 70589de0..1cfcb6d0 100644 --- a/src/library/structure/heading.rs +++ b/src/library/structure/heading.rs @@ -1,6 +1,6 @@ use crate::library::layout::BlockSpacing; use crate::library::prelude::*; -use crate::library::text::{FontFamily, TextNode, TextSize, Toggle}; +use crate::library::text::{FontFamily, TextNode, TextSize}; /// A section heading. #[derive(Debug, Hash)] @@ -103,11 +103,11 @@ impl Show for HeadingNode { } if resolve!(Self::STRONG) { - map.set(TextNode::STRONG, Toggle); + realized = realized.strong(); } if resolve!(Self::EMPH) { - map.set(TextNode::EMPH, Toggle); + realized = realized.emph(); } if resolve!(Self::UNDERLINE) { |
