Generate prosemirror state from yjs snapshot

Hi, I was wondering if it is possible to somehow generate prosemirror state in a plugin from a yjs snapshot. What I am trying to do is, by using prosemirror-changeset, create decorations for inserts and deletes by comparing it with an initial state which I want to generate from a ydoc’s snapshot. Or is there any other way to do this?

Yes there is a versioning example that shows how to do it. Note that this is still experimental…

The documentation links to the versioning demo: ProseMirror - Yjs Docs