yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.9k stars 324 forks source link

Enable pre-commit for Markdown All in One #1403

Open gnawin opened 6 months ago

gnawin commented 6 months ago

Proposal

To run Markdown All in One as part of a pre-commit workflow, and provide relevant information to the repos list in the project's .pre-commit-config.yaml.

Other information

My user case is automatic formatting of tables. Adding Markdown All in One as part of the workflow will ensure a consistent style.

yzhang-gh commented 5 months ago

Thanks for your suggestion. It looks similar as #1394 which is about the TOC.

The difference is that GFM table formating should already be done by other packages, e.g. Prettier?

gnawin commented 5 months ago

Thank you. We've changed to Prettier. If there were a pre-commit hook for Markdown All in One, we would have chose it :)