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

Be more forgiving of link mark-up with spaces? #12

Open
autarch opened this issue Jun 9, 2018 · 1 comment
Open

Be more forgiving of link mark-up with spaces? #12

autarch opened this issue Jun 9, 2018 · 1 comment

Comments

@autarch
Copy link
Member

autarch commented Jun 9, 2018

Migrated from rt.cpan.org #92249 (status was 'open')

Requestors:

From [email protected] (@pjf) on 2014-01-18 03:49:19:

Markdent pareses [link text](url) just fine, but it thinks that [link text] (url) is a text chunk followed by an auto-link in paraentheses.

At least in github-flavoured-markdown, a space between the link title and the url is considered to be fine. I'm happy to send through a patch (or a pull request on github) to fix this, but I'd love to know if you'd want me to change it for all markdowns, or just GFM.

Many thanks for a great module!:D

~ pjf

@autarch
Copy link
Member Author

autarch commented Jun 9, 2018

From [email protected] (@autarch) on 2014-01-18 04:31:33:

On Fri, 17 Jan 2014, PJF via RT wrote:

At least in github-flavoured-markdown, a space between the link title
and the url is considered to be fine. I'm happy to send through a patch
(or a pull request on github) to fix this, but I'd love to know if you'd
want me to change it for all markdowns, or just GFM.

The Markdown spec at
http://daringfireball.net/projects/markdown/syntax#link says "[t]o create
an inline link, use a set of regular parentheses immediately after the
link text�s closing square bracket."

I think that "immediately" suggests that space shouldn't be accepted, but
I'd happy to accept a patch that adds this to the GFM dialect.

Thanks,

-dave

/============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================
/

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

No branches or pull requests

1 participant