markdown-table-formatter-z

A markdown plugin to format tables, improved.

mduo13

1,517

2

2.9.2

MIT

GitHub

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)

Changelog

Usage

There are two basic ways of using this plugin.

  1. Select the table you want to format and them hit alt-shift-T to format it.
  2. 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

Settings image

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;
}