summaryrefslogtreecommitdiff
path: root/library/src/layout/spacing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/layout/spacing.rs')
-rw-r--r--library/src/layout/spacing.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/library/src/layout/spacing.rs b/library/src/layout/spacing.rs
index 092d2c0a..f306d47c 100644
--- a/library/src/layout/spacing.rs
+++ b/library/src/layout/spacing.rs
@@ -2,9 +2,10 @@ use std::cmp::Ordering;
use crate::prelude::*;
+/// # Spacing (H)
/// Horizontal spacing in a paragraph.
///
-/// # Parameters
+/// ## Parameters
/// - amount: Spacing (positional, required)
/// How much spacing to insert.
///
@@ -13,8 +14,8 @@ use crate::prelude::*;
/// Moreover, from multiple adjacent weak spacings all but the largest one
/// collapse.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable(Behave)]
#[derive(Debug, Copy, Clone, Hash)]
@@ -63,9 +64,10 @@ impl Behave for HNode {
}
}
+/// # Spacing (V)
/// Vertical spacing.
///
-/// # Parameters
+/// ## Parameters
/// - amount: Spacing (positional, required)
/// How much spacing to insert.
///
@@ -74,8 +76,8 @@ impl Behave for HNode {
/// Moreover, from multiple adjacent weak spacings all but the largest one
/// collapse.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable(Behave)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, PartialOrd)]