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

Empty link text #305

cabo opened this issue Feb 5, 2016 · 1 comment

Empty link text #305

cabo opened this issue Feb 5, 2016 · 1 comment


Copy link

cabo commented Feb 5, 2016

Commonmark allows link text to be empty:

kramdown doesn't: [](#) is not recognized and rendered literally.

Now this has been the case for a long time (apparently, it drove me to define special syntax for RFCXML xrefs in 2010 or so).

Still, I'd like to understand the rationale for this, and, if it turns out to be weak, discuss whether this behavior can be changed to be more like commonmark.

(There are legitimate uses of empty link text even in HTML, but I'm mainly interested in using this for kramdown-rfc2629.)

@gettalong gettalong self-assigned this Feb 16, 2016
@gettalong gettalong added the bug label Feb 16, 2016
Copy link

As per the syntax spec at least one character needs to be inside the square brackets.

However, it seems that most implementations do allow this, even the original implementation, see

As for a rationale: I don't think I had any, it probably just seemed the right way to do.

So I would classify this as a bug since even for images it works okay in kramdown.

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

No branches or pull requests

2 participants