Marks were being sorted, but I had forgotten that sort() mutates the array instead of cloning it
When going deeper into lists, we were appending the deeper list to the last child of the parent list (because ul > li > ul in html), but I had overlooked that we were appending to a list item, not the actual list. Lists are cloned, since we create a virtual node for them, but list items are kept as-is.
This PR fixes these issues and removes the quickfix.
Tracked down the mutations that were happening:
sort()
mutates the array instead of cloning itul > li > ul
in html), but I had overlooked that we were appending to a list item, not the actual list. Lists are cloned, since we create a virtual node for them, but list items are kept as-is.This PR fixes these issues and removes the quickfix.