Skip to content

Conversation

@nthiery
Copy link

@nthiery nthiery commented Apr 24, 2025

This is a draft of fix for #13.

I don't really know what I am doing here. So please, anyone familiar with the mdformat / mdit code base improve! In particular, the list of supported directives is currently hardcoded which is ugly.
I have first tried to build on top of mdit_py_plugins.colon_fence instead of mdit_py_plugins.container. This would have avoided to handle metadata manually and removed the need to provide a fixed list of directives; however, the content of the directive is not parsed recursively with colon_fence.

Current limitation: yaml metadata delimited by --- is not supported.

@nthiery
Copy link
Author

nthiery commented Oct 30, 2025

Branch updated. I don't know how to progress from there. Could we get feedback or review? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant