diff --git a/crates/typst-library/src/layout/ratio.rs b/crates/typst-library/src/layout/ratio.rs index 0fe7f8075..4bd58e305 100644 --- a/crates/typst-library/src/layout/ratio.rs +++ b/crates/typst-library/src/layout/ratio.rs @@ -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, {