Document both argument for counters

This commit is contained in:
Laurenz 2023-05-19 11:40:03 +02:00
parent a38dd4439e
commit aed0f1ce7d

View File

@ -214,6 +214,12 @@ use crate::prelude::*;
/// If this is omitted, displays the counter with the numbering style for the
/// counted element or with the pattern `{"1.1"}` if no such style exists.
///
/// - both: boolean (named)
/// If enabled, displays the current and final top-level count together. Both
/// can be styled through a single numbering pattern. This is used by the page
/// numbering property to display the current and total number of pages when a
/// pattern like `{"1 / 1"}` is given.
///
/// - returns: content
///
/// ### step()