Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to remote document anchor does not work #705

Open
ulrichsch opened this issue Feb 13, 2023 · 3 comments
Open

Jump to remote document anchor does not work #705

ulrichsch opened this issue Feb 13, 2023 · 3 comments
Labels

Comments

@ulrichsch
Copy link

document.adoc:

...
[[idname]]
A paragraph with an anchor
...

The referencing document:

link:document.adoc#idname[Link to remote document anchor]

Problem: The remote document is opened but its top is shown instead of the referenced paragraph.

Remark: I also tried using xref: instead of link: but with this a .html page in the browser is tried to be opened instead of the referenced AsciiDoc document.

@ggrossetie
Copy link
Member

Remark: I also tried using xref: instead of link: but with this a .html page in the browser is tried to be opened instead of the referenced AsciiDoc document.

I believe that happens in the preview?
I'm working on improving xref support, see #744.

You should definitely use xref and not link when referencing an AsciiDoc file.

@illnr
Copy link

illnr commented Jan 19, 2024

Are there any plans on supporting xref anchor links in preview? I can't make it work atm.

@ViToni
Copy link
Contributor

ViToni commented Mar 1, 2024

@illnr Seems related to #425.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants