-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Describe the bug
If you have any form of a reference in your document, either by the outline function referencing the different headers or by using a tag and then referencing it with @ later, the references do not work in the preview.
To Reproduce
Steps to reproduce the behavior:
- Run the TypstPreview command on a typst file.
- Scroll down to the outline page in your preview.
- Click on any of the headers to jump to that position.
- Clicking will end up doing nothing and it will not scroll down to where that header is.
Expected behavior
It is expected that the preview scrolls down to the header clicked in the outline.
Screenshots
What should happen (This happens in VS code):
This is me about to click the header:

This is how it look after I have clicked the header:
When I use this preview for neovim however, it stays on the first image without jumping to the correct position in the second image.
Desktop (please complete the following information):
- OS: Ubuntu 24.04.3
- Commit / Version: v1.4.1
Additional context
This problem showed up maybe a month or 2 ago, possibled in the latest version although I haven't verified this.