-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingstylingAbout set and show rules or style propertiesAbout set and show rules or style properties
Description
Description
When adding spacing before a heading, references to the heading still point to the heading:
#set heading(numbering: "1")
#show heading.where(level: 1): it => {
pagebreak(to: "odd")
it
}
= Hello World <hello>
#lorem(1500)
= Hello Again
Go to @helloHowever, when adding a state update before the page break references now point to before the page break, where the state update is.
#let s = state("s")
#set heading(numbering: "1")
#show heading.where(level: 1): it => {
s.update(1)
pagebreak(to: "odd")
it
}
= Hello World <hello>
#lorem(1500)
= Hello Again
Go to @helloAs state updates are invisible in the rendered document they should probably be ignored, as spacing and page breaks already are.
Reproduction URL
No response
Operating system
Linux
Typst version
- I am using the latest version of Typst
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstylingAbout set and show rules or style propertiesAbout set and show rules or style properties