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

Blockquote tag appears after HTML not ending with newline #361

Closed ivanspasov99 closed 1 year ago

ivanspasov99 commented 1 year ago

Using latest version of goldmark

If you have for example without newline at the end:

<pre>
text
<code>
var go int
</code>
</pre>   <-- no newline

The library add empty

at the end of the generated HTML document.

ivanspasov99 commented 1 year ago

Relates to https://github.com/yuin/goldmark/issues/360 but the info was mistaken