diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-07-11 11:30:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 09:30:06 +0000 |
| commit | 36042ff222d70349f4c459384790ec40e1103bf9 (patch) | |
| tree | ce13f342f3856828039b65cfc026ba3903b3b7a6 | |
| parent | 3c22902d6cd99de6717fd2dad0a1fcca48039225 (diff) | |
Remove `place.flush` from global scope (#4537)
| -rw-r--r-- | crates/typst/src/layout/mod.rs | 1 | ||||
| -rw-r--r-- | crates/typst/src/layout/place.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/crates/typst/src/layout/mod.rs b/crates/typst/src/layout/mod.rs index 85cdbae7..739d0922 100644 --- a/crates/typst/src/layout/mod.rs +++ b/crates/typst/src/layout/mod.rs @@ -106,7 +106,6 @@ pub fn define(global: &mut Scope) { global.define_elem::<ColumnsElem>(); global.define_elem::<ColbreakElem>(); global.define_elem::<PlaceElem>(); - global.define_elem::<FlushElem>(); global.define_elem::<AlignElem>(); global.define_elem::<PadElem>(); global.define_elem::<RepeatElem>(); diff --git a/crates/typst/src/layout/place.rs b/crates/typst/src/layout/place.rs index 78922c1b..be211c15 100644 --- a/crates/typst/src/layout/place.rs +++ b/crates/typst/src/layout/place.rs @@ -46,7 +46,7 @@ pub struct PlaceElem { /// Floating elements are positioned at the top or bottom of the page, /// displacing in-flow content. They are always placed in the in-flow /// order relative to each other, as well as before any content following - /// a later [`flush`] element. + /// a later [`place.flush`] element. /// /// ```example /// #set page(height: 150pt) |
