A bug report highlights that some Amazon-generated links containing double underscores (e.g., __mk_fr_FR) are misinterpreted by the forum’s markdown parser, causing broken or malformed links CamilleRoux. A workaround using angle brackets <link> is noted Vitaly, referencing a long-standing issue in the markdown-it library. Vitaly seeks real-world data on whether URLs commonly end with _, ~, -, or + to inform a parser rewrite, asking for help scanning large markdown datasets Vitaly. sam provides limited stats from Meta: - appears in 181 links, _ in 58, + in 8, and ~ in just 2. They suggest querying Stack Exchange’s public data for more examples. Vitaly requests visual examples or direct links to those posts Vitaly. Finally, JammyDodger suggests consolidating the issue with an existing thread on Meta Discourse about links broken by multiple underscores, and closes this topic.
Here is the link: https://www.amazon.fr/Partition-int%C3%A9rieure-jazz-musiques-improvis%C3%A9es/dp/2907891030?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=partition+int%C3%A9rieure&qid=1625013895&sr=8-1&linkCode=ll1&tag=theoriemusicale-21&linkId=87d44c3dedd4b919e02195911a7a2b0d&language=fr_FR&ref_=as_li_ss_tl
The problem seems to come from the double underscore
Still no deadlines. Good news is: i finally rolled out to production my new forum software https://rcopen.com/ (why a lot of resources been spent to create markdown-it). So, chances to fix this bug changed from “far infinity” to “some future”
@sam, help required. I need info, can links from real world end with _, ~, - or +.
http://example.com/?sdf,wer- and so on.
That’s important to know before markdown-it’s linkifier rewrite. Could you grep some huge postings databases for such cases and let me know if anything found or not found? Probably, those links were posted as <...> for workaround. So, regexp pattern for db scan will be something like /<http.+[+~_-]>/g (not tested)
I have no access to such big volume of markdown texts to reach acceptable confidence. May be you could help, or know anyone who could help?