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

Fix non working xref in preview pane #853

Merged

Conversation

ViToni
Copy link
Contributor

@ViToni ViToni commented Mar 11, 2024

Both xref: and link: create <a> elements. For xref: the data-href attribute was missing so WebView didn't treat it as a regular link. Now xref: and link: are created the same way for the WebView thus allowing xref: navigation.

Resolves #425.

During testing `cacheImageSizes` always triggered events even though there were no images in the document.
@ViToni ViToni force-pushed the bugfix/fix_non-working_xref_preview_pane branch from ee1eabf to e464a57 Compare March 16, 2024 11:31
@ViToni ViToni force-pushed the bugfix/fix_non-working_xref_preview_pane branch from e464a57 to da585df Compare March 16, 2024 11:50
@ViToni ViToni force-pushed the bugfix/fix_non-working_xref_preview_pane branch 3 times, most recently from 30601d9 to a509fc5 Compare March 17, 2024 18:46
@ViToni ViToni force-pushed the bugfix/fix_non-working_xref_preview_pane branch from 2a9583f to 58eac4f Compare March 19, 2024 00:12
@ggrossetie
Copy link
Member

All good, thanks 👍🏻

@ggrossetie ggrossetie merged commit 8928072 into asciidoctor:master Mar 19, 2024
2 checks passed
@ViToni ViToni deleted the bugfix/fix_non-working_xref_preview_pane branch March 23, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support xref navigation in the preview
2 participants