Closed neildaniels closed 5 years ago
CommonMark does the same:
This because list items are not leaf blocks (they can contain other blocks). The two word variant doesn't satisfy the syntax for a link reference definition and so ends up being rendered how you're expecting. Perhaps try using the full or collapsed syntax for reference links so they don't look like definitions?
Thanks for the workaround.
TBH, this seems like a bug to me. Is this not going to be fixed?
Spec bugs go in commonmark/commonmark-spec if you wanted to propose a way of fixing it :)
The following Markdown is misinterpreted. It treats the the list item
[Example]: Single
as a reference-link definition. Something with two or more words (like the "Other" line) are unaffected.