curvenote / prosemirror-docx

Export a prosemirror document to a Microsoft Word file, using docx.
MIT License
97 stars 13 forks source link

serialize references separate from children #9

Closed dylangrandmont closed 2 years ago

dylangrandmont commented 2 years ago

Not a tremendous fan of the approach but we'll need to separate the regular serialized content (children) and the reference content. This is required because templates can insert content, followed by a templated section (e.g. a signoff section), followed finally by references. This approach duplicates the children serialization in a minimal way to achieve this separation.

Opening for feedback

dylangrandmont commented 2 years ago

Closing in favour of a different implementation