mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
Moved auto
note up in caption separator docs (#2856)
Previously `auto` note was only visible when example is shown.
This commit is contained in:
parent
f3fa900d58
commit
64c2c65c80
@ -462,6 +462,9 @@ pub struct FigureCaption {
|
|||||||
|
|
||||||
/// The separator which will appear between the number and body.
|
/// 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
|
/// ```example
|
||||||
/// #set figure.caption(separator: [ --- ])
|
/// #set figure.caption(separator: [ --- ])
|
||||||
///
|
///
|
||||||
@ -470,9 +473,6 @@ pub struct FigureCaption {
|
|||||||
/// caption: [A rectangle],
|
/// 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>,
|
pub separator: Smart<Content>,
|
||||||
|
|
||||||
/// The caption's body.
|
/// The caption's body.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user