3 ms·
> The actual article has got a trailing * on its link and that does not properly linkify here. Ah yes - that can seem like a bug in the URL parser, but the pro
by dang 5y ago
> The actual article has got a trailing * on its link and that does not properly linkify here.
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* https://en.wikipedia.org/wiki/Sagittarius_A*>
Edit: yup! This is in https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc, as it happens.
- _Microft 5y agoThanks a lot for the explanation! It never occured to me that there might be more to links in angle brackets than personal style or habit of a commenter.