showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.26k stars 1.56k forks source link

Empty URL didn't get encode. #820

Closed jcs090218 closed 2 years ago

jcs090218 commented 4 years ago

[here]() did not get encode to [here]().

Everything work if not empty.

SyntaxRules commented 2 years ago

We should support this, it look like it is common among markdown specs.

This is allowed in GFM: https://github.github.com/gfm/#example-495 This is allowed in CommonMark: https://spec.commonmark.org/0.30/#example-484 This is an ambiguous feature in DF: https://daringfireball.net/projects/markdown/syntax#link