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

Issues with shortcut links converted to reference links #281

Open
danpla opened this issue Jun 18, 2023 · 0 comments
Open

Issues with shortcut links converted to reference links #281

danpla opened this issue Jun 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@danpla
Copy link

danpla commented Jun 18, 2023

Consider the following test.md file:

Text with [link1] and [link2].

[LINK1]: example.com
[link2]: example.com

md2po test.md gives the following msgid:

msgid "Text with [link1][LINK1] and [link2][LINK1]."

As you see, there are two strange things:

  • Although link labels are case-insensitive, a shortcut link is unnecessarily converted to a reference link if the label has different letter case.
  • [link2] surprisingly turned into [link2][LINK1], apparently because both link references have the same URL.

md2po 1.1.3

@mondeja mondeja added the bug Something isn't working label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants