Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Empty link text #305
Commonmark allows link text to be empty:
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.)
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 Markdown.pl implementation, see http://johnmacfarlane.net/babelmark2/?normalize=1&text=%5B%5D(%23).
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.