summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-21 13:56:25 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-21 14:00:37 +0100
commit36ea0b05c9986288eec8bc4a6b35a89b6ea0d3f4 (patch)
tree947f463758adc80e265dbbb24eda21cff4b6e8be /library
parent7c7b8302251e9703b086c9bf5a989982535bc25b (diff)
Refactor proc macros
Diffstat (limited to 'library')
-rw-r--r--library/src/text/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs
index d36f8db5..a00510b6 100644
--- a/library/src/text/mod.rs
+++ b/library/src/text/mod.rs
@@ -114,22 +114,22 @@ impl TextNode {
/// Whether the font weight should be increased by 300.
#[property(skip, fold)]
- pub(super) const BOLD: Toggle = false;
+ const BOLD: Toggle = false;
/// Whether the font style should be inverted.
#[property(skip, fold)]
- pub(super) const ITALIC: Toggle = false;
+ const ITALIC: Toggle = false;
/// A case transformation that should be applied to the text.
#[property(skip)]
- pub(super) const CASE: Option<Case> = None;
+ const CASE: Option<Case> = None;
/// Whether small capital glyphs should be used. ("smcp")
#[property(skip)]
- pub(super) const SMALLCAPS: bool = false;
+ const SMALLCAPS: bool = false;
/// A destination the text should be linked to.
#[property(skip, referenced)]
pub(crate) const LINK: Option<Destination> = None;
/// Decorative lines.
#[property(skip, fold)]
- pub(super) const DECO: Decoration = vec![];
+ const DECO: Decoration = vec![];
fn construct(_: &mut Vm, args: &mut Args) -> SourceResult<Content> {
// The text constructor is special: It doesn't create a text node.