Add note: footnote show/set rules at document start (#2078)

This commit is contained in:
raphCode 2023-09-07 12:01:50 +02:00 committed by GitHub
parent 97ca009bb8
commit 66a5958917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ cast! {
/// ```
///
/// _Note:_ Set and show rules in the scope where `footnote` is called may not
/// apply to the footnote's content. See [here][issue] more information.
/// apply to the footnote's content. See [here][issue] for more information.
///
/// [issue]: https://github.com/typst/typst/issues/1467#issuecomment-1588799440
///
@ -166,6 +166,12 @@ impl Count for FootnoteElem {
/// This function is not intended to be called directly. Instead, it is used
/// in set and show rules to customize footnote listings.
///
/// _Note:_ Set and show rules for `footnote.entry` must be defined at the
/// beginning of the document in order to work correctly.
/// See [here][issue] for more information.
///
/// [issue]: https://github.com/typst/typst/issues/1348#issuecomment-1566316463
///
/// ## Example { #example }
/// ```example
/// #show footnote.entry: set text(red)