Skip to content

Ignore end of link in LuaTeX if no node is inserted #121

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

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

zauguin
Copy link
Member

@zauguin zauguin commented Jul 16, 2025

If a link gets ended in a group less nested than the group the link was started in, then at the final location there is no link inserted. In order to inform the callback that the link is ending, the linksplit callback gets called with position final but since there is no link there the link node is nil. Catch and ignore this case since there is no annotation there which needs to be tagged.

Fixes #120.

@u-fischer u-fischer merged commit afd4f06 into develop Jul 16, 2025
1 check passed
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.

2 participants