diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-20 16:08:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-20 16:11:37 +0100 |
| commit | f5f7df7247ae29800e0290774a50942e2485beea (patch) | |
| tree | 57253ba51efdae3ac8e4eea722428924625b514c /library/src/layout/stack.rs | |
| parent | b8ffd3ad3dcaebddbc674e03494e0d818b21fa51 (diff) | |
Documentation
Diffstat (limited to 'library/src/layout/stack.rs')
| -rw-r--r-- | library/src/layout/stack.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs index 2683175a..f83f4e41 100644 --- a/library/src/layout/stack.rs +++ b/library/src/layout/stack.rs @@ -3,9 +3,10 @@ use typst::model::StyledNode; use super::{AlignNode, Spacing}; use crate::prelude::*; +/// # Stack /// Arrange content and spacing along an axis. /// -/// # Parameters +/// ## Parameters /// - items: StackChild (positional, variadic) /// The items to stack along an axis. /// @@ -15,8 +16,8 @@ use crate::prelude::*; /// - spacing: Spacing (named) /// Spacing to insert between items where no explicit spacing was provided. /// -/// # Tags -/// - layout +/// ## Category +/// layout #[func] #[capable(Layout)] #[derive(Debug, Hash)] |
