splitbee / react-notion

A fast React renderer for Notion pages
https://react-notion.com
MIT License
2.88k stars 157 forks source link

Improve logic that determines ordered list count #7

Closed timolins closed 4 years ago

timolins commented 4 years ago

Notion has a weird way of handling top-level lists. To determine the correct number for each list item, we group all successive blocks with the same type together. This way we have separate groups of all lists, which we can use to lookup the index of the corresponding block.

Closes #4 (again)

kartiknair commented 4 years ago

Just tested it & everything works perfectly. Thank you so much for quickly dealing with the issue!