Skip to content

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

License

Notifications You must be signed in to change notification settings

bitwiser73/MarkdownTableFormatter

Repository files navigation

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:

|:------------------|:---------------------|:-----------------|

This example will not work:

|:------------------| ---------------------|:-----------------|

Support it!

Donate

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages