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

autolink_bare_uris doesn't work correctly in 3.1.12.x for URLs with dot, comma, parenthesis etc. #151

Closed
debiedowner opened this issue Mar 11, 2024 · 1 comment · Fixed by #152
Labels
bug Something isn't working

Comments

@debiedowner
Copy link

Take the following:

https://en.wikipedia.org/wiki/St._Petersburg_paradox

https://en.wikipedia.org/wiki/Liaison_(French)

https://en.wikipedia.org/wiki/Frederick_III,_German_Emperor

When I use any pandoc version before 3.1.12 with pandoc -f commonmark+autolink_bare_uris test.md -o test.html or pandoc -f gfm test.md -o test.html, or use Github or other Markdown implementations, these URLs are detected correctly, as:

https://en.wikipedia.org/wiki/St._Petersburg_paradox

https://en.wikipedia.org/wiki/Liaison_(French)

https://en.wikipedia.org/wiki/Frederick_III,_German_Emperor

But, using 3.1.12, or the most recent 3.1.12.2, pandoc results in the following instead

https://en.wikipedia.org/wiki/St._Petersburg_paradox

https://en.wikipedia.org/wiki/Liaison_(French)

https://en.wikipedia.org/wiki/Frederick_III,_German_Emperor

which is not the output I expect and consistent with other implementations.

@debiedowner debiedowner added the bug Something isn't working label Mar 11, 2024
@jgm
Copy link
Owner

jgm commented Mar 11, 2024

Almost certaintly due to this change:
f0b9653

@jgm jgm transferred this issue from jgm/pandoc Mar 11, 2024
jgm added a commit that referenced this issue Mar 11, 2024
jgm added a commit that referenced this issue Mar 11, 2024
This affects autolinks with doubled internal line-ending punctuation characters.
Closes #151.
@jgm jgm closed this as completed in #152 Mar 11, 2024
jgm added a commit that referenced this issue Mar 11, 2024
This affects autolinks with doubled internal line-ending punctuation characters.
Closes #151.
jgm added a commit to jgm/pandoc that referenced this issue Mar 11, 2024
This fixes a 3.12 regression in parsing of commonmark/gfm autolinks
(jgm/commonmark-hs#151).
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

Successfully merging a pull request may close this issue.

2 participants