sindresorhus/refined-github




Do you want to work on this issue?
You can request for a bounty in order to promote it!
URL Links with Period at End Fail in Markdown #2342
karlhorky posted onGitHub
#381 introduced adding links to URLs in code, which is a really cool feature!
However, it doesn't follow the same rules as Markdown in Markdown code, such as the case where a link has a period at the end (the link on https://github.com/palmerhq/tsdx/pull/138/files goes to https://github.com/alexreardon/tiny-invariant.
, with the period):
I can think of two ways to deal with this off the top of my head (maybe there's a better / easier alternative):
- use a different regular expression in Markdown files that more closely matches Markdown semantics
- don't allow periods at the last character of a URL? I haven't seen many (any?) URLs like this, and I think the number of URLs to be fixed by this is probably a lot higher...