russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.42k stars 598 forks source link

Regression: a list is not closed when it is followed by a code block #557

Closed heavywatal closed 5 years ago

heavywatal commented 5 years ago

For example,

-   item 1
-   item 2

```
This block should be out of <ul>...</ul>
```

ends up with HTML that includes the code block in the item 2. A possible workaround is to add a comment like <!-- end list --> after the last list item.

This was originally reported in Hugo discourse: https://discourse.gohugo.io/t/possible-regression-in-v0-55-5-regarding-lists-containing-code-blocks/18502/4

heavywatal commented 5 years ago

duplicates #556