This PR adds support for specifying test metadata in .mdx files using MDX-style comments ({/* pmd-metadata: */}) placed above code blocks. This should support all existing options and allow for easily adding more without having to alter the MDX parsing logic.
Summary
This PR adds support for specifying test metadata in
.mdx
files using MDX-style comments ({/* pmd-metadata: */}
) placed above code blocks. This should support all existing options and allow for easily adding more without having to alter the MDX parsing logic.Example:
Issue: https://github.com/modal-labs/pytest-markdown-docs/issues/28