I'm trying to convert ProseMirror's JSON output back to HTML (to save it from one db to another). I am new with ProseMirror and I'm not sure I fully understand the relation between model, state and schema.
Judging from what I have read https://github.com/ProseMirror/prosemirror/issues/455 and https://discuss.prosemirror.net/t/example-of-converting-between-formats-for-the-purpose-of-saving/424,
I should first create a new state based on a basic schema, then use the DOMSerializer and attach the output to a temporary element (then get innerHtml). Does that sound about right? Any help would be greatly appreciated.