summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/model/figure.rs
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2025-06-02 14:02:01 +0100
committerGitHub <noreply@github.com>2025-06-02 13:02:01 +0000
commit61dee554ba9f8d30b983776ecdfefa4b12a985ea (patch)
treea7d4143c624b6a2277696feba68a4faa9b3f06d3 /crates/typst-library/src/model/figure.rs
parent3e7a39e968644ee925598f792fdc597b55a2529f (diff)
Add an example of show-set `place.clearance` for figures in the doc (#6208)
Diffstat (limited to 'crates/typst-library/src/model/figure.rs')
-rw-r--r--crates/typst-library/src/model/figure.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/typst-library/src/model/figure.rs b/crates/typst-library/src/model/figure.rs
index 5a137edb..bec667d6 100644
--- a/crates/typst-library/src/model/figure.rs
+++ b/crates/typst-library/src/model/figure.rs
@@ -125,6 +125,9 @@ pub struct FigureElem {
///
/// ```example
/// #set page(height: 200pt)
+ /// #show figure: set place(
+ /// clearance: 1em,
+ /// )
///
/// = Introduction
/// #figure(