typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
12 stars 0 forks source link

Show rules mess with the go-to-definition functionality in the web app #446

Closed LaurenzV closed 9 hours ago

LaurenzV commented 9 hours ago

Description

See the reproduction URL. Try to click for example on Etiam in the second sentence, and it will correctly jump back to the corresponding location in the source code.

Now uncomment the show rule and try again, and it will jump to a slightly different location instead.

Reproduction URL

https://typst.app/project/rkdshblstJ3CQV_ZSOdH3s

Browsers

No response

OS

No response

laurmaedje commented 9 hours ago

Duplicate of https://github.com/typst/typst/issues/2854

laurmaedje commented 9 hours ago

Fwiw, I usually call this "jump from click" or "to-source jump" to distinguish it from the "go to definition" for variables triggered via Ctrl+Click.

LaurenzV commented 9 hours ago

Ah oops, sorry for the duplicate.

laurmaedje commented 9 hours ago

No problem.