diff --git a/crates/typst-library/src/text/deco.rs b/crates/typst-library/src/text/deco.rs index e34bf363b..4f85abef3 100644 --- a/crates/typst-library/src/text/deco.rs +++ b/crates/typst-library/src/text/deco.rs @@ -243,9 +243,7 @@ pub struct HighlightElem { #[default(Color::Rgba(RgbaColor::new(0xFF, 0xFF, 0x5F, 0xFF)).into())] pub fill: Paint, - /// The top end of the background rectangle. Note that top edge will update - /// to be always higher than the glyph's bounding box. - /// (default: "ascender") + /// The top end of the background rectangle. /// /// ```example /// #set highlight(top-edge: "ascender") @@ -257,9 +255,7 @@ pub struct HighlightElem { #[default(TopEdge::Metric(TopEdgeMetric::Ascender))] pub top_edge: TopEdge, - /// The bottom end of the background rectangle. Note that top edge will update - /// to be always lower than the glyph's bounding box. - /// (default: "descender") + /// The bottom end of the background rectangle. /// /// ```example /// #set highlight(bottom-edge: "descender") diff --git a/crates/typst/src/eval/func.rs b/crates/typst/src/eval/func.rs index 45a1efbdb..fcde26d7e 100644 --- a/crates/typst/src/eval/func.rs +++ b/crates/typst/src/eval/func.rs @@ -333,7 +333,8 @@ impl Func { args: Args, /// The arguments to apply to the function. #[external] - arguments: Args, + #[variadic] + arguments: Vec, ) -> Func { let span = self.span; Self { repr: Repr::With(Arc::new((self, args))), span } @@ -348,8 +349,9 @@ impl Func { /// The docs argument cannot be called `args`. args: Args, /// The fields to filter for. + #[variadic] #[external] - fields: Args, + fields: Vec, ) -> StrResult { let mut args = args; let fields = args.to_named(); diff --git a/crates/typst/src/geom/stroke.rs b/crates/typst/src/geom/stroke.rs index 820f4f442..893ac2ebb 100644 --- a/crates/typst/src/geom/stroke.rs +++ b/crates/typst/src/geom/stroke.rs @@ -64,8 +64,8 @@ use super::*; /// /// # Fields /// On a `stroke` object, you can access any of the fields mentioned in the -/// dictionary format above. For example, `{(2pt + blue).thickness}` is `{2pt}`, -/// `{(2pt + blue).miter-limit}` is `{4.0}` (the default), and so on. +/// dictionary format above. For example, `{(2pt + blue).thickness}` is `{2pt}`. +/// Meanwhile, `{(2pt + blue).cap}` is `{auto}` because it's unspecified. #[ty] #[derive(Default, Clone, Eq, PartialEq, Hash)] pub struct Stroke { diff --git a/docs/changelog.md b/docs/changelog.md index 8c14ce96b..4f83b5883 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -7,7 +7,8 @@ description: | # Changelog ## Version 0.8.0 (September 13, 2023) { #v0.8.0 } - Scripting - - Plugins (thanks to [@astrale-sharp](https://github.com/astrale-sharp)) + - Plugins (thanks to [@astrale-sharp](https://github.com/astrale-sharp) and + [@arnaudgolfouse](https://github.com/arnaudgolfouse)) - Typst can now load [plugins]($plugin) that are compiled to WebAssembly - Anything that can be compiled to WebAssembly can thus be loaded as a plugin