fletcher / MultiMarkdown-4

This project is now deprecated. Please use MultiMarkdown-6 instead!
https://github.com/fletcher/MultiMarkdown-5
Other
307 stars 59 forks source link

Angle bracket enclosed URL in reference link fails. #68

Closed cirosantilli closed 10 years ago

cirosantilli commented 10 years ago

Input:

[a][b]

[b]: <http://a.com>

The output href contains <>, but the original docs http://daringfireball.net/projects/markdown/syntax#link say it should work:

The link URL may, optionally, be surrounded by angle brackets

and it works on every major implementation except peg-markdown.

If I could turn back time, I would not allow angle brackets like your implementation: it is better to have a single way of doing things.

But what is done is done, so until we have a markdown specification, it is better to be compatible IMHO.

Discovered with the Markdown Test Suite at https://github.com/karlcow/markdown-testsuite/pull/50 .

Copy pasted from: https://github.com/jgm/peg-markdown/issues/33

fletcher commented 10 years ago

Thanks!