hukkin / mdformat

CommonMark compliant Markdown formatter
https://mdformat.rtfd.io
MIT License
459 stars 46 forks source link

Allow plugins to be configured in `.mdformat.toml` #439

Closed rwlodarczyk-xealth closed 4 months ago

rwlodarczyk-xealth commented 4 months ago

Context

While the pre-commit hook allows additional dependencies to be utilized, it would be beneficial to allow additional dependencies/plugins to be configured through the .mdformat.toml. This would allow for standalone execution of mdformat without having to invoke pre-commit run --all-files.

Proposal

Add a section to .mdformat.toml for [plugins] similar to that of the additional_dependencies in the pre-commit config.

Tasks and updates

No response

rwlodarczyk-xealth commented 4 months ago

Is it the correct understanding that if the plugins are installed mdformat will automatically use them?

rwlodarczyk-xealth commented 4 months ago

Is it the correct understanding that if the plugins are installed mdformat will automatically use them?

Indeed, verified.