gomarkdown / markdown

markdown parser and HTML renderer for Go
Other
1.36k stars 171 forks source link

Renderer bug #309

Closed Fastidious closed 2 months ago

Fastidious commented 2 months ago

The following will render verbatim:

in which case it is *awesome*—

The *awesome* should be rendering italicised.

kjk commented 2 months ago

Indeed. Babelmarkshows most do <em>aweseome</em>

Link to live test case: https://tools.arslexis.io/goplayground/#o5GYkjPhX8v

kjk commented 2 months ago

It's caused by NoIntraEmphasis flag so you can fix it by removing that from flags.CommonExtensions.

Or maybe we can update IsPunctuation() to handle this but the issue is that it's built to only handle ascii and is some unicode char that looks like - but isn't.