yuin / goldmark

:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
MIT License
3.68k stars 255 forks source link

Insert space after task-list checkboxes #112

Closed cipherboy closed 4 years ago

cipherboy commented 4 years ago

According to the GFM spec (and per other implementations), a space should be inserted after the checkbox input element. This gives visual separation between the checkbox and its element. Update code and tests to match.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>


This brings goldmark into compliance with Pandoc's markdown_github, and the rendering on GitHub itself:

Do let me know if there's an alternative way of adding this space that you'd prefer.

This should help with go-gitea/gitea#9656.

cipherboy commented 4 years ago

Thanks @yuin!