Find a way to toggle bullet lists and ordered lists (and maybe todolists)

Would this work if the mark cleared the existing formatting first (e.g. run the clear formatting / paragraph mark) and then apply the ordered list?
I've started to investigate how to fix this issue but I want to check if someone else is already on it.
My starting point is the discussion on Prosemirror forums. There is a comment about the implementation done on @atlaskit/editor-core to be a working one but their implementation is quite complex.
Looking at the various corner cases covered by that code I would try to port it from typescript to ES6 instead of reinventing the wheel. Are the maintainers here okay with that?
Hey @erickwilder. I also found this discussion a few weeks ago and tried my best – but without success. 😅 Maybe something with my implementation of commands isn't working here. I'd like to see someone else tackle this!
Okay. I'll continue to have a look and I hope that I can send a PR to fix it.
Hello, any updates on this?
I want to help but I don't have the expertise to do this.
I found this prosemirror wrapper on react have this toggle figured out.
https://github.com/chanzuckerberg/czi-prosemirror/blob/master/src/toggleList.js
But, it's written in Flow, and it's complex.
@laurensiusadi
Sorry, I didn't have much time to work on this one but I did some research a while ago and I couldn't find a "simple" solution for it. Thanks for sharing this link; in general terms, I could follow through the code and if everyone agrees I could use it as a base implementation here.
@erickwilder I really need this feature. Any update?
Most helpful comment
Okay. I'll continue to have a look and I hope that I can send a PR to fix it.