summaryrefslogtreecommitdiff
path: root/library/src/layout/par.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-20 16:08:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-20 16:11:37 +0100
commitf5f7df7247ae29800e0290774a50942e2485beea (patch)
tree57253ba51efdae3ac8e4eea722428924625b514c /library/src/layout/par.rs
parentb8ffd3ad3dcaebddbc674e03494e0d818b21fa51 (diff)
Documentation
Diffstat (limited to 'library/src/layout/par.rs')
-rw-r--r--library/src/layout/par.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/library/src/layout/par.rs b/library/src/layout/par.rs
index f9731ff2..bdd8c9d5 100644
--- a/library/src/layout/par.rs
+++ b/library/src/layout/par.rs
@@ -11,14 +11,15 @@ use crate::text::{
shape, LinebreakNode, Quoter, Quotes, ShapedText, SmartQuoteNode, SpaceNode, TextNode,
};
+/// # Paragraph
/// Arrange text, spacing and inline-level nodes into a paragraph.
///
-/// # Parameters
+/// ## Parameters
/// - body: Content (positional, required)
/// The contents of the paragraph.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable]
#[derive(Hash)]
@@ -147,10 +148,11 @@ castable! {
"optimized" => Self::Optimized,
}
+/// # Paragraph Break
/// A paragraph break.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable(Unlabellable)]
#[derive(Debug, Hash)]