russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.41k stars 596 forks source link

Whitespace at the beginning or end of bold region of text breaks parsing #681

Open GabeIB opened 3 years ago

GabeIB commented 3 years ago

Text like this **whitespace at the end of bold region ** and this ** whatespace at the beginning of bold region** are not recognized as text that should be made bold by the blackfriday parser.

While I expected **bold text ** to be rendered to something like this: <b>bold text </b>. It is instead just treated as text.

While, github's markdown renderer has the same behavior, it might be nice to make blackfriday more resilient to user error.