jupyter-book / mystmd

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

Nest identifiers in frontmatter #1585

Closed fwkoch closed 1 month ago

fwkoch commented 1 month ago

For identifiers, MyST frontmatter already includes MyST id, doi, and arxiv. We just added PubMed identifiers in #1570. There are many other identifiers (we are already looking to add zenodo), and we should not disallow them with our frontmatter validation.

Rather than needing a PR for every new identifier type any user needs, we should introduce identifiers: Record<string, string> to hold arbitrary external identifiers.

A few details:

choldgraf commented 1 month ago

I'd love to use the solution to this as inspiration for how we can similarly extend other parts of the myst engine (e.g. for launch buttons, edit buttons, etc as described in #1584 )