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

Link Block #16

Open
bennyboer opened this issue May 24, 2023 · 0 comments
Open

Link Block #16

bennyboer opened this issue May 24, 2023 · 0 comments
Labels
enhancement New feature or request planned

Comments

@bennyboer
Copy link
Owner

bennyboer commented May 24, 2023

Support for Links!

Here is some text. And this is a <link target="https://example.com">Link</link>.

Link targets should be either URLs or parts of the document.

<heading label="heading1">My heading</heading>

This is some text and a <link target="heading1">Link</link> that links to the above heading.

Forward references

Example:

See <link target="image1">Image <var name="TARGET_NUMBER"/></link>

<image src="image.png" label="image1">My caption</image>

The Image to jump to when clicking the link has not yet been seen. The content of the link cannot be laid out properly as we do not yet know the number of the image for the given label image1. Thats why we have multiple layout passes. The current layout pass finished with the flag stable set to false. When encountering an unstable layout another layout pass is done. In the second layout pass we know the number of the image with the given label and can mark the layout as stable.

@bennyboer bennyboer added enhancement New feature or request planned labels May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned
Projects
None yet
Development

No branches or pull requests

1 participant