by dang · 4y ago · 0 comments
Ah yes - that can seem like a bug in the URL parser, but the problem is that there are other cases where people put asterisks after links that shouldn't* be incorporated into the URL. So ultimately it's an ambiguity. In fact, I vaguely remember going through the corpus of HN comments, the last time I worked on the URL parser, to see which way trailing asterisks should be treated, and it turned out that "don't include them" was the more common case. (Or maybe I just imagined doing that.)
In any case, for such occurrences I believe you can use angle brackets as parser hints and your URL should get linkified correctly:
<https://en.wikipedia.org/wiki/Sagittarius_A*>
Edit: yup! This is in https://news.ycombinator.com/formatdoc, as it happens.