hukkin / mdformat

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

Improve plugin list in `--help` #469

Closed hukkin closed 4 weeks ago

hukkin commented 4 weeks ago

Context

It's possible for a plugin distribution to add multiple extensions or codeformatters. It would be useful to know what all extensions and codeformatters are installed and which distribution added them. Especially so with something like https://github.com/executablebooks/mdformat/issues/460 added in the future.

Proposal

Currently at the end of --help output we have

Installed plugins: mdformat-gfm: 0.3.7, mdformat_tables: 1.0.0, mdformat-black: 0.1.1, mdformat-config: 0.2.1

Make the output more like

Installed codeformatters: mdformat-black 0.1.1 (python), mdformat-config 0.2.1 (json,toml,yaml)
Installed extensions: mdformat-gfm 0.3.7 (gfm), mdformat_tables 1.0.0 (tables)