ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Markdown Table Formatter

by bitwiser73 ST3

Sublime Text 3 plugin for formatting markdown table (inspired by Atom's MarkdownTableFormatter)

Details

Installs

  • Total 7K
  • Win 3K
  • OS X 3K
  • Linux 1K
Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6
Windows 0 5 4 2 4 0 0 3 5 2 9 4 1 2 1 5 4 8 1 1 1 4 6 4 5 5 0 1 5 1 3 1 5 1 1 0 3 5 4 2 5 1 4 7 8 3
OS X 0 3 4 1 1 0 2 1 3 5 3 4 3 0 7 3 0 8 1 0 3 3 6 1 4 2 4 0 4 4 2 0 4 0 2 2 3 0 2 2 2 0 4 2 4 3
Linux 0 3 1 1 5 1 1 0 0 5 3 2 1 1 0 2 3 1 1 2 0 0 1 3 4 4 0 1 0 8 4 0 1 0 2 1 1 1 3 4 0 1 3 5 0 0

Readme

Source
raw.​githubusercontent.​com

Markdown Table Formatter

travis MIT licensed Donate

Sublime Text 3 markdown plugin that offers table formatting.

Inspired by the Atom's version from fcrespo82 (Fernando).

markdowntableformatter[at]gmail[.]com

Example

Usage

There are two basic ways of using this plugin. Select what you want to format and hit Ctrl+Alt+Shift+T or use the same shortcut without selection to format the entire document.

Configuration

{
  // make plugin verbose in debug console
  "verbose": false,

  // scan document to format tables when saving
  "autoformat_on_save": false,

  // spaces between "|" and cell's text
  "margin": 1,

  // additional spaces before/after cell's text (depending on justification)
  "padding": 0,

  // how text should be justified when not specified [LEFT, RIGHT, CENTER]
  "default_justification": "LEFT"
}

Proper formatting

To be recognised properly by the plugin, Markdown tables must not contain white space in the line that separate the table heading from the other table rows.

For example, the following works:

Error: language “md” is not supported
|:------------------|:---------------------|:-----------------|

This example will not work:

Error: language “md” is not supported
|:------------------| ---------------------|:-----------------|

Support it!

Donate