markdown-table-formatter v1.6.1
Markdown table formatter
Format markdown tables in files, using embedded markdown-table-prettify
Table of contents
Installation
Local
npm install markdown-table-formatter --saveGlobal
npm install markdown-table-formatter -gUsage
markdown-table-formatter [OPTIONS] (file(s) or glob expression)Options
| Parameter | Description | Default value |
|---|---|---|
| -c--check | Check only, does not update files | false |
| -p--columnpadding | Override column padding number of spaces | |
| -h--help | Displays help | |
| -v--version | Displays version |
Examples
Format all markdown files found within current directory
markdown-table-formatterFormat all markdown files found with a glob expression
markdown-table-formatter **/docs/*.mdFormat markdown tables in a single file
markdown-table-formatter myfile.mdFormat markdown tables in a multiple file
markdown-table-formatter myfile.md anotherFile.md andAnotherFile.mdCheck if markdown table formatting is necessary in a single file
markdown-table-formatter --check myfile.mdCheck if markdown table formatting is necessary in a multiple files
markdown-table-formatter --check myfile.md anotherFile.md andAnotherFile.mdYou can see more examples in test methods
Continuous Integration
You can automatically check markdown tables formatting and fix it using MegaLinter, that embeds markdown-table-formatter out of the box
Ignoring Code Blocks
You may wish to ignore specific markdown content, especially when using with Megalinter or terraform-docs
To achieve this, place tags <!-- markdown-table-prettify-ignore-start --> and <!-- markdown-table-prettify-ignore-end --> around the content you want markdown-table-formatter to ignore.
Contribute
Contributions are very welcome !
Please follow Contribution instructions
Release Notes
See complete CHANGELOG
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
