mirror of
https://github.com/typst/typst
synced 2025-06-15 00:26:26 +08:00
improve level docs
This commit is contained in:
parent
b997450a4b
commit
9139baf263
@ -470,9 +470,12 @@ pub struct GridHeader {
|
||||
|
||||
/// The level of the header. Must not be zero.
|
||||
///
|
||||
/// This is used during repetition multiple headers at once. When a header
|
||||
/// with a lower level starts repeating, all headers with a lower level stop
|
||||
/// repeating.
|
||||
/// This allows repeating multiple headers at once. Headers with different
|
||||
/// levels can repeat together, as long as they have ascending levels.
|
||||
///
|
||||
/// Notably, when a level with a lower level starts repeating, all higher
|
||||
/// or equal level headers stop repeating (they are "replaced" by the new
|
||||
/// header).
|
||||
#[default(NonZeroU32::ONE)]
|
||||
pub level: NonZeroU32,
|
||||
|
||||
|
@ -539,9 +539,12 @@ pub struct TableHeader {
|
||||
|
||||
/// The level of the header. Must not be zero.
|
||||
///
|
||||
/// This is used during repetition multiple headers at once. When a header
|
||||
/// with a lower level starts repeating, all headers with a lower level stop
|
||||
/// repeating.
|
||||
/// This allows repeating multiple headers at once. Headers with different
|
||||
/// levels can repeat together, as long as they have ascending levels.
|
||||
///
|
||||
/// Notably, when a level with a lower level starts repeating, all higher
|
||||
/// or equal level headers stop repeating (they are "replaced" by the new
|
||||
/// header).
|
||||
#[default(NonZeroU32::ONE)]
|
||||
pub level: NonZeroU32,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user