-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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 is broken in Goldmark when link contains underscore #6932
Comments
Reproduced with In your (internationalized!) site, there are 2 types of Autolink with underscore. One is with While the former is broken, the latter works fine even with goldmark.
Your point is right. How about removing backslashes? @tdelmas |
@satotake thank you for noticing the backslash, I missed it! The conclusion is yes, there are differences goldmark's behavior and blackfriday's about handling backslash but not only: I found some links surrounding by Chinese punctuation that were not converted. I'm fixing all those links to be explicit links. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
With Blackfriday (
defaultMarkdownHandler = "blackFriday"
) a markdown page with the text "https://safebrowsing.google.com/safebrowsing/report_badware/" generate correctly an html page with<a href="https://safebrowsing.google.com/safebrowsing/report_badware/">https://safebrowsing.google.com/safebrowsing/report_badware/</a>
But with Goldmark the html generated is :
<a href="https://safebrowsing.google.com/safebrowsing/report/">https://safebrowsing.google.com/safebrowsing/report/</a>_badware
: The end "_badware" is considered outside the link.The text was updated successfully, but these errors were encountered: