Markdown Table Creator
A Sublime Text plugin to create and reformat Markdown tables
Labels markdown
Details
Installs
- Total 2K
- Win 718
- Mac 625
- Linux 316
Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 2 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 4 | 1 | 1 | 2 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 1 | 2 | 1 | 0 | 0 | 0 | 3 | 3 | 0 | 1 | 1 | 0 | 0 | 0 | 2 | 3 | 1 |
Mac | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 2 | 0 | 2 | 2 | 0 | 0 | 1 | 0 | 2 | 1 | 0 | 2 | 4 | 1 | 2 | 2 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 0 | 2 | 1 | 2 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
Linux | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Markdown Table Creator
Markdown Table Creator is a Sublime Text plugin that helps you create and reformat Markdown tables quickly.
Demo video:
https://user-images.githubusercontent.com/1588495/202923784-16f5d2a0-920d-4dbc-a58a-0a2861f8eceb.mov
Table of Contents
Installation
via Package Control
- Open the Command Palette (
Tools > Command Palette
) - Search for
Package Control: Install Package
and select it - Search for
Markdown Table Creator
and select it to install
https://packagecontrol.io/packages/Markdown%20Table%20Creator
Manual Installation
- Open Sublime Text package directory with
Sublime Text > Preferences > Browse Packages...
. - Copy the files to
User
directory.
Usage
Create Markdown table
- Type 1+ header names, separated with
|
(or configuredextra_header_separators
) - Type content data, separated with
|
(or configuredextra_content_separators
) (optional) - Select the text you want to convert to Markdown table
- Select
Markdown Table Creator
from Command Palette, or hit the defined key binding
Reformat Markdown table
- Make any change in header/content data, alignment, or table structure
- Select the Markdown table
- Select
Markdown Table Creator
from Command Palette, or hit the defined key binding
Examples
▶ Only header information
Before
City|Country|Population
After
City | Country | Population |
---|
▶ If you defined \
as separator in extra_header_separators
such as "extra_header_separators": "\\"
Before
City\Country\Population
After
City | Country | Population |
---|
▶ You can also enter the data alongside the header
Before
City\Country\Population
London|UK|8M
Istanbul|Turkey|12M
After
City | Country | Population |
---|---|---|
London | UK | 8M |
Istanbul | Turkey | 12M |
▶ You can define the column alignment by putting :
to the header
Before
City (Default Left)|:Country (Centered):|Population (Right):
London|UK|8M
Istanbul|Turkey|12M
After
City (Default Left) | Country (Centered) | Population (Right) |
---|---|---|
London | UK | 8M |
Istanbul | Turkey | 12M |
Configuration
Keymap
You can add a keymap with
Sublime Text > Preferences > Key Bindings
Example:
{ "keys": ["alt+shift+t"], "command": "markdown_table_creator" }
Customization
{
// This will be used to align the column when alignment is not specified with ":"
// Can be "left" / "right" / "center"
"default_alignment": "left",
// Each of the characters will be used to separate header line together with "|"
"extra_header_separators": "",
// Each of the characters will be used to separate content lines together with "|"
"extra_content_separators": "",
// Enabling debug_mode will print errors after the selected text
"debug_mode": false,
}