jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
219 stars 64 forks source link

Support additional input formats #1653

Open scmmmh opened 6 days ago

scmmmh commented 6 days ago

I'm a current user of the Sphinx/JupyterBook stack and in a number of projects we are using Sphinx's ability to define parsers for additional data-formats (primarily various XML-based formats). Would it be possible to include similar functionality in mystmd, enabling a mixing of Markdown and XML (or other data format) input files?

Proposal

Allow plugins to configure additional parsers that output MDAST.

Additional notes

It might even be sufficient for mystmd to just be able to load directly from serialised AST files and then other formats could be supported in a pre-processing step, but tighter integration will obviously provide a better user experience.