New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angle bracket enclosed URL in reference link fails. #68

Closed
cirosantilli opened this Issue May 12, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@cirosantilli

cirosantilli commented May 12, 2014

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 karlcow/markdown-testsuite#50 .

Copy pasted from: jgm/peg-markdown#33

@fletcher fletcher closed this in 57bd647 May 13, 2014

@fletcher

This comment has been minimized.

Owner

fletcher commented May 13, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment