DiscoTOC doesn't work with headings in lists

While reading Official Discourse AI Plugin, I noticed an issue with the TOC component. After reading the “Embeddings” paragraph, the TOC collapses. This seems to be caused by the next two headlines being part of a list.

3 Likes

thanks @Moin , I can repro this. Sorry I didn’t seee this one til today. I moved to bug because that collapsing doesn’t seem like the expected behavior.

1 Like

The TOC does not collapse anymore :tada:

However, the headings from the list are still not shown in the TOC