commonmark-spec icon indicating copy to clipboard operation
commonmark-spec copied to clipboard

Newlines inside link labels?

Open marcusklaas opened this issue 6 years ago • 2 comments

It seems that the spec (0.29) allows for arbitrary whitespace including newlines inside link labels, though the reference parser doesn't accept it. Which behavior is correct?

cc https://github.com/raphlinus/pulldown-cmark/issues/326 cc @mity

marcusklaas avatar May 16 '19 13:05 marcusklaas

I'll comment on the linked issue.

jgm avatar May 17 '19 04:05 jgm

Blank lines shouldn't be allowed in link labels. Language should be added to the spec to rule them out (though newlines between non-blank lines are okay).

jgm avatar May 17 '19 18:05 jgm