yogthos / markdown-clj

Markdown parser in Clojure
Eclipse Public License 1.0
540 stars 120 forks source link

links: Allow a few more characters in link references #183

Closed algernon closed 2 years ago

algernon commented 2 years ago

Adjust the regexps used to find link references, so that :, /, and \ are allowed in there too. While the CommonMark spec describes link labels as something even more lax, allowing all that - including balanced square brackets - would be a considerably bigger undertaking.

So this patch only adds the three characters above to the regexp.

Fixes #182.

yogthos commented 2 years ago

I think this would be reasonable enough for most cases, and solves the immediate problem. I just pushed out 1.11.1 with the fix. Thanks for taking a look at it.