Closed cirosantilli closed 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:
href
<>
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
Thanks!
Input:
The output
href
contains<>
, but the original docs http://daringfireball.net/projects/markdown/syntax#link say it should work: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