gomarkdown / markdown

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

Fix/ Fenced code after list item without a new line #267

Closed AlexandarNaydenovSAP closed 1 year ago

AlexandarNaydenovSAP commented 1 year ago

Issue: https://github.com/gomarkdown/markdown/issues/261

AlexandarNaydenovSAP commented 1 year ago

Hi, @miekg!

Sorry it was my fault, because I forgot to add ListEnd flag and it created a new empty List Item below.

I have added a test case for this. Can you check if this meet your case?

Before the change that results to an <dt></dt> tag:

Screenshot 2022-10-12 at 17 52 24

After the change:

Screenshot 2022-10-12 at 17 53 08
kjk commented 1 year ago

Thanks!