summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAndrew Voynov <37143421+Andrew15-5@users.noreply.github.com>2023-12-05 14:55:13 +0300
committerGitHub <noreply@github.com>2023-12-05 12:55:13 +0100
commit64c2c65c8063c178cd6d6c1ebdb1c13fb50ac610 (patch)
tree3d6495495c0b7a1e5404a56f487f58f759741c78 /crates
parentf3fa900d58a4507dc5b4200166d6603b4cb9859d (diff)
Moved `auto` note up in caption separator docs (#2856)
Previously `auto` note was only visible when example is shown.
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/model/figure.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst/src/model/figure.rs b/crates/typst/src/model/figure.rs
index e6ab7a2a..1fffc502 100644
--- a/crates/typst/src/model/figure.rs
+++ b/crates/typst/src/model/figure.rs
@@ -462,6 +462,9 @@ pub struct FigureCaption {
/// The separator which will appear between the number and body.
///
+ /// If set to `{auto}`, the separator will be adapted to the current
+ /// [language]($text.lang) and [region]($text.region).
+ ///
/// ```example
/// #set figure.caption(separator: [ --- ])
///
@@ -470,9 +473,6 @@ pub struct FigureCaption {
/// caption: [A rectangle],
/// )
/// ```
- ///
- /// If set to `{auto}`, the separator will be adapted to the current
- /// [language]($text.lang) and [region]($text.region).
pub separator: Smart<Content>,
/// The caption's body.