/mdfmt

A simple tool to format markdown tables

Primary LanguageRust

mdfmt

Formats the tables in your Markdown documents. Usage: mdfmt [--in-place] [--strict] [input] [output]

Before:

| Column A | Column B |
| --- |:-:|
| Apple | Giant Octopus |
| Pear | Pointlessly long item |

After:

| Column A | Column B              |
|----------|:---------------------:|
| Apple    | Giant Octopus         |
| Pear     | Pointlessly long item |