Markdown Table Formatter Z
A markdown plugin to format tables.
Forked from fcrespo82's version to add a new feature. Based on the awesome Improved Markdown table commands for TextMate work from Dr. Drang (@drdrang)
Usage
There are two basic ways of using this plugin.
- Select the table you want to format and them hit
alt-shift-T
to format it. - If you didn't select any table the entire document (default) will be scanned, by the plugin, for tables and format all of them.
Settings & Keybindings
-
Limit Last Column Padding (New)
In tables where the last column has extra long cells, avoid padding the short cells or table headers beyond the editor's preferredLineLength?
Tips
Enable Markdown Table Formatter for the current file type
To enable Markdown Table Formatter for your current file type: put your cursor in the file, open the Command Palette ⌘ (CMD)+⇧ (SHIFT)+P, and run the Editor: Log Cursor Scope
command. This will trigger a notification which will contain a list of scopes. The first scope that's listed is the one you should add to the list of scopes in the settings for the Markdown Table Formatter package.
How to style the tables correctly if you use non-monospace fonts
atom-text-editor::shadow .table.gfm {
font-family: monospace;
}