diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-10 23:23:50 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-10 23:36:36 +0200 |
| commit | 34fa8df044f1491069c9ae69f1c1e73d635c8955 (patch) | |
| tree | 30b9144690f55f0343a1fdbfcac6c9238c617077 /src/library/structure/heading.rs | |
| parent | 29eb13ca6214461a4b0deb63d589cd39ad6d41c2 (diff) | |
Move language-related properties from `par` to `text`
Closes #67
Diffstat (limited to 'src/library/structure/heading.rs')
| -rw-r--r-- | src/library/structure/heading.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/structure/heading.rs b/src/library/structure/heading.rs index dcf87f90..07e5e662 100644 --- a/src/library/structure/heading.rs +++ b/src/library/structure/heading.rs @@ -25,6 +25,7 @@ impl HeadingNode { let upscale = (1.6 - 0.1 * level as f64).max(0.75); TextSize(Em::new(upscale).into()) }); + /// Whether text in the heading is strengthend. #[property(referenced)] pub const STRONG: Leveled<bool> = Leveled::Value(true); @@ -34,12 +35,14 @@ impl HeadingNode { /// Whether the heading is underlined. #[property(referenced)] pub const UNDERLINE: Leveled<bool> = Leveled::Value(false); + /// The extra padding above the heading. #[property(referenced)] pub const ABOVE: Leveled<RawLength> = Leveled::Value(Length::zero().into()); /// The extra padding below the heading. #[property(referenced)] pub const BELOW: Leveled<RawLength> = Leveled::Value(Length::zero().into()); + /// Whether the heading is block-level. #[property(referenced)] pub const BLOCK: Leveled<bool> = Leveled::Value(true); |
