Hey, over the past few years I have programmed a few different export filters for Fidus Writer: DOCX, ODT, JATS, EPUB, HTML, LaTeX and the latest edition is now an exporter to the JSON format used by pandoc (thanks to sponsorship by European Union/Nlnet).
However, all of these exporters are written specifically for the schema used by Fidus Writer. In each case I am essentially iterating over the contents of a prosemirror document in some form or other.
I am wondering if it would make sense to try to rewrite the pandoc export filter so it is more generic and can be used by other prosemirror-based editors as well and then to share the maintenance burden (I would change the license to match that of prosemirror).
Previously I thought that it wouldn’t make that much sense as the schema used is specific to each editor. But seeing that others have created prosemirror-docx and prosemirror-markdown and finding that for export to the pandoc JSON format I just had to go through a lot of trial and error and looking at what the JSON would look like when importing from other formats into Pandoc JSON, I wonder if it would not make sense to maintain some package at least for all the basic node types in common and then make it extensible somehow.
Would that make sense or did everyone else here already come to the conclusion that it makes more sense to create exports that are schema-specific?