Nesting ordered and bullet lists in markdown mode

I think there is something wrong with the way the codemirror/lezer parse nested lists in markdown mode.

To make the problem visible I styled the class .list.cmt-meta with a distinctive red color.

In the screenshot bellow there are two nested lists. The first is ok, the second not.

Or maybe there is something wrong with my understanding of commonmark spec (or codemirror implementation), I’m not 100% sure.

Yes, that was a bug in @lezer/markdown. Release 0.15.2 should fix it.

1 Like