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 link decoration for enhanced rendering #19

Merged
merged 2 commits into from
Aug 19, 2023

Conversation

r0ckarong
Copy link
Contributor

When using the enhanced rendering and caption numbering, the caption link doesn't have a space to the title (when a caption is present). I believe the numbered caption is stored with a space at the end of the string for the "normal" numbering throughout the document. This confuses the link decoration and just assumes all whitespace after it belongs to the link as well. This leads to wrong display in the lists:

Current behavior:
image

Space stripped from caption:
image

I've also removed the unnecessary stuff from the else conditions for these cases.

@Alwinator Alwinator merged commit 54905fd into Alwinator:main Aug 19, 2023
@Alwinator
Copy link
Owner

Alwinator commented Aug 19, 2023

Thank you for your changes! I have merged them and released version v1.0.9 which includes your changes.

@r0ckarong r0ckarong deleted the list-entry-spaces branch August 19, 2023 13:10
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