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

White space issue in markdown #126

Closed raju4244 closed 4 years ago

raju4244 commented 4 years ago

Hi Team,

When I use comma or dot after the URL in markdown

[text](url).
[text](url),

The output has space between the text and comma or dot,

like text . or text ,

Can some one help me.

I reported the issue in Hugo community - https://discourse.gohugo.io/t/white-space-issue-in-markdown/25258

They said it seems to be the issue with goldmark render I use in the config.

When I use blackfriday markup, rendering is fine.

[markup] defaultMarkdownHandler = "blackfriday"

When I use goldmark, The output has space between the text and comma or dot,

[markup] defaultMarkdownHandler = "goldmark"