mirror of
https://github.com/typst/typst
synced 2025-08-10 05:07:55 +08:00
docs(ratio): separated 2 paragraphs
This commit is contained in:
parent
011e9af3a6
commit
5b0b866099
@ -8,11 +8,12 @@ use crate::foundations::{repr, ty, Repr};
|
||||
|
||||
/// A ratio of a whole.
|
||||
///
|
||||
/// Written as a number, followed by a percent sign. A common use case is
|
||||
/// setting the width or height of a container (e.g., [block], [rect], etc.),
|
||||
/// as it can be used as part of a [relative length]($relative) to represent
|
||||
/// a certain percentage of the size of the surrounding container or of the
|
||||
/// current page. For example:
|
||||
/// Written as a number, followed by a percent sign.
|
||||
///
|
||||
/// A common use case is setting the width or height of a container (e.g.,
|
||||
/// [block], [rect], etc.), as it can be used as part of a [relative
|
||||
/// length]($relative) to represent a certain percentage of the size of the
|
||||
/// surrounding container or of the current page. For example:
|
||||
///
|
||||
/// ```example
|
||||
/// #block(width: 240pt, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user