From 551ea99d05166b0be50792f767ddd38b996e32fa Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 17 May 2023 14:41:46 +0200 Subject: Show default values in documentation Fixes #169 Fixes #1102 --- library/src/layout/table.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'library/src/layout/table.rs') diff --git a/library/src/layout/table.rs b/library/src/layout/table.rs index bb24bd7c..fb4e4a3b 100644 --- a/library/src/layout/table.rs +++ b/library/src/layout/table.rs @@ -104,16 +104,18 @@ pub struct TableElem { /// How to stroke the cells. /// - /// This can be a color, a stroke width, both, or `{none}` to disable - /// the stroke. + /// See the [line's documentation]($func/line.stroke) for more details. + /// Strokes can be disabled by setting this to `{none}`. + /// + /// _Note:_ Richer stroke customization for individual cells is not yet + /// implemented, but will be in the future. In the meantime, you can use + /// the third-party [tablex library](https://github.com/PgBiel/typst-tablex/). #[resolve] #[fold] #[default(Some(PartialStroke::default()))] pub stroke: Option, /// How much to pad the cells's content. - /// - /// The default value is `{5pt}`. #[default(Abs::pt(5.0).into())] pub inset: Rel, -- cgit v1.2.3