---
/cc @aignas Can you review if your Blackfriday commit referenced above caused this regression and can you please fix it?
[1]: https://discourse.gohugo.io/t/rendering-code-blocks-properly-from-md-files/19126/19?u=kaushalmodi
[2]: https://github.com/russross/blackfriday/commit/a477dd1646916742841ed20379f941cfa6c5bb6f
[3]: https://github.com/gohugoio/hugo/commit/1cbb501be8aa83b08865fbb6ad5aee254946712f
Ref: https://github.com/gohugoio/hugo/issues/6040
Hello,
I discovered this issue recently [from this comment in the Hugo Discourse forum][1].
The issue is that for a Markdown snippet:
list item 2 now gets nested under list item 1.
This issue wasn't there until Hugo v0.55.5. The last good Hugo version without this regression is v0.55.4.
Recreating this issue is very easy; just clone the below repo and run it with Hugo v0.55.4 vs Hugo v0.55.5, and see the difference:
My best bet is that [this commit][2] in Blackfriday caused this regression.
The regression was seen in Hugo in v0.55.5, because it's in that version that Blackfriday version was bumped to version v1.5.2 in [this commit][3].
Example snippet
Rendering of above in Hugo v0.55.4
List item 1
List item 2
Rendering of above in Hugo v0.55.5 (regression)
List item 1