From 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 8 Mar 2023 10:43:03 +0100 Subject: Require font to be a named argument --- src/doc.rs | 4 +++- src/model/content.rs | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/doc.rs b/src/doc.rs index 9ac2f68d..0c01dcd2 100644 --- a/src/doc.rs +++ b/src/doc.rs @@ -598,13 +598,15 @@ pub enum Meta { } /// Host for metadata. +/// +/// Display: Meta +/// Category: special #[node] pub struct MetaNode { /// Metadata that should be attached to all elements affected by this style /// property. #[settable] #[fold] - #[skip] #[default] pub data: Vec, } diff --git a/src/model/content.rs b/src/model/content.rs index 2af4ae72..189ee23a 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -326,6 +326,9 @@ impl Sum for Content { } /// A node with applied styles. +/// +/// Display: Styled +/// Category: special #[node] pub struct StyledNode { /// The styled content. @@ -347,6 +350,9 @@ cast_from_value! { /// /// Combines other arbitrary content. So, when you write `[Hi] + [you]` in /// Typst, the two text nodes are combined into a single sequence node. +/// +/// Display: Sequence +/// Category: special #[node] pub struct SequenceNode { #[variadic] -- cgit v1.2.3