russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.42k stars 598 forks source link

Added an extension which allowes to parse links with empty link text. #581

Closed jsteuer closed 4 years ago

jsteuer commented 4 years ago

Added an extension which allowes to parse links with empty link text.

This is related to: https://github.com/russross/blackfriday/pull/402

Example

[](./target.md)

Use-Case

The tool I am working on can find and insert the first title of referenced documents. In this case the need of some link text or magic words would be curious.

Usage

Enable the AllowLinksWithoutText extension. Without that flag blackfriday will behave like before.

Note

The beheaviour of the extension is conform with CommonMark: