gomarkdown / markdown

markdown parser and HTML renderer for Go
Other
1.37k stars 172 forks source link

Support [foo]() syntax #259

Closed miekg closed 2 years ago

miekg commented 2 years ago

See 558d915, this supports the reverse as well: [foo]() is turned into a empty ahref - also affects the img rendering. Checked with https://commonmark.org/help/tutorial/07-links.html what CommonMark thinks of this and it says 'OK'

This indeed trickers a crash when accessing uLink[0], fixes that and updated the tests.

Closes #257

Signed-off-by: Miek Gieben miek@miek.nl

kjk commented 2 years ago

Thanks!