Skip to content
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
Closed

Angle bracket enclosed URL in reference link fails. #68

cirosantilli opened this issue May 12, 2014 · 1 comment

Comments

@cirosantilli
Copy link

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
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants