Closed
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
Activity
[-]Label target search doesn't skip over state updates[/-][+]State update in show rule affects element position[/+]