A Prettier plugin that automatically formats tables in Markdown files by adjusting column widths and ensuring alignment. Version 1.0.3, released in 2024, requires Prettier ^3.3.2 and linguist-languages ^7.27.0. Unlike general prettier plugins, this focuses solely on Markdown tables, providing consistent formatting for tables with long content. It is a simple, single-purpose plugin without alternative table formatting tools in the npm ecosystem.
npm install prettier-markdown-tableNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to enable the plugin in .prettierrc and format a markdown file containing a table.
Ensure your file extension is .md or .markdown and that prettier is configured to parse it.
Update prettier to ^3.3.2 or later.
Run 'npm install prettier-markdown-table' and ensure prettier is installed.
Run 'npm install linguist-languages' or ensure it is in your package.json.