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


by SublimeText-Markdown ST2/ST3 Top 100

Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.



  • Total 257K
  • Win 109K
  • OS X 103K
  • Linux 46K
Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10
Windows 42 240 206 209 245 140 134 193 215 215 196 234 124 95 176 215 193 194 203 110 123 178 145 111 120 110 88 76 115 138 174 155 187 125 98 203 226 182 217 179 130 126 183 206 200 205
OS X 26 150 148 144 122 94 92 134 141 123 158 119 62 68 125 122 173 178 167 74 102 130 119 113 128 135 89 68 103 93 131 171 146 98 84 126 148 135 176 137 78 69 133 142 151 159
Linux 6 55 57 68 57 46 48 68 58 65 67 84 35 46 60 57 65 53 65 33 40 58 65 49 55 52 36 40 52 56 76 69 57 38 39 56 59 74 48 77 39 47 59 62 67 74




Markdown plugin for Sublime Text. Provides a decent Markdown color scheme (light and dark) with more robust syntax highlighting and useful Markdown editing features for Sublime Text. 3 flavors are supported: Standard Markdown, GitHub flavored Markdown, MultiMarkdown.


Dark and yellow theme available, plus thirdparty themes. See configuration section to learn how to change the theme.



Important Note About Installation

Are you getting this error after installation: Error loading syntax file “Packages/Markdown/Markdown.tmLanguage”: Unable to open Packages/Markdown/Markdown.tmLanguage? This is caused by open markdown files at the install time. You have to manually change their syntax to your newly installed Markdown syntax. Read the below paragraph for more details on this.

Note: Sublime text has a native tiny package for Markdown. However, when MarkdownEditing is enabled, native package causes some conflicts. For this reason, MarkdownEditing will automatically disable it. Since it doesn't bring anything new over MarkdownEditing, this is not a loss. But remember, when you disable MarkdownEditing, you have to reenable the native one manually (if you want).

If you are using Sublime Text 2, you have to disable the native package manually. To do that, add Markdown to your ignored_packages list in ST user settings:

"ignored_packages": [..., "Markdown"],

Package Control

The preferred method of installation is via Sublime Package Control.

  1. Install Sublime Package Control
  2. From inside Sublime Text, open Package Control's Command Pallet: CTRL SHIFT P (Windows, Linux) or CMD SHIFT P on Mac.
  3. Type install package and hit Return. A list of available packages will be displayed.
  4. Type MarkdownEditing and hit Return. The package will be downloaded to the appropriate directory.
  5. Restart Sublime Text to complete installation. Open a Markdown file and this custom theme. The features listed above should now be available.

Manual Installation

  1. Download or clone this repository to a directory MarkdownEditing in the Sublime Text Packages directory for your platform:
    • Mac: git clone https://github.com/SublimeText-Markdown/MarkdownEditing.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/MarkdownEditing
    • Windows: git clone https://github.com/SublimeText-Markdown/MarkdownEditing.git %APPDATA%\Sublime/ Text/ 2/\MarkdownEditing
    • Linux: git clone https://github.com/SublimeText-Markdown/MarkdownEditing.git ~/.Sublime\ Text\ 2/Packages/MarkdownEditing
  2. Restart Sublime Text to complete installation. Open a Markdown file and this custom theme. The features listed above should now be available.


  • Asterisks and underscores are autopaired and will wrap selected text
    • If you start an empty pair and hit backspace, both elements are deleted
    • If you start an empty pair and hit space, the right element is deleted
  • Backticks are paired
  • At the end of a list item, pressing Enter will automatically insert the new list item bullet.
    • Pressing Tab on the blank list item will indent it and switch the list bullet to another one (Order is *, -, + in a cycle).
    • Pressing Shift Tab on the blank list item will unindent it in the same way as above.
    • Sequential Tab s or Shift Tab s are supported.
    • You can disable automatic bullet switching or choose which bullets to be used, in your settings file.
    • If a list item contains a GFM task, pressing Enter at the end of the line will continue with a new blank task.
  • At the end of a blockquote line, pressing Enter will automatically extend blockquote.
  • Selecting some text and pressing > will convert it to blockquote. The first and the last line don't have to be fully selected; partial select works, too.
  • Left bracket pairing is modified to eliminate the selection and leave the cursor at a point where you can insert a [] or () pair for a link
  • Displays Markdown headers in the Project Symbol List (Ctrl Shift R). They will start with #, so you will know they belong to markdown files at a glance. Also they will be on top of the list because of the presedence of #.
  • ~ wraps selected text with ~~ (strikethrough).
  • Typing # when there's a selection will surround it with # to make it a headline. Multiple presses add additional hashes, increasing the level of the header. Once you hit 6 hashes, it will reset to 0 on the next press. The mde.match_header_hashes will determine if the # are mirrored on both sides or just at the beginning of the line.
  • Typing return at the end of a line that begins with hashmarks will insert closing hashmarks on the headline. They're not required for Markdown, it's just aesthetics, and you can change the mde.match_header_hashes option in your settings to disable.
  • Setext-style headers can be completed with Tab. That is, typing Tab on a line containing only = or - characters will add or remove enough characters to it to match the length of the line above.
  • New documents will be named automatically based on the first header.

Key Bindings

OS X Windows/Linux Description
V CtrlWinV Creates or pastes the contents of the clipboard as an inline link on selected text.
R CtrlWinR Creates or pastes the contents of the clipboard as a reference link.
K ShiftWinK Creates or pastes the contents of the clipboard as an inline image on selected text.
B I AltB AltI These are bound to bold and italic. They work both with and without selections. If there is no selection, they will just transform the word under the cursor. These keybindings will unbold/unitalicize selection if it is already bold/italic.
1...6 Ctrl1...6 These will add the corresponding number of hashmarks for headlines. Works on blank lines and selected text in tandem with the above headline tools. If you select an entire existing headline, the current hashmarks will be removed and replaced with the header level you requested. This command respects the mde.match_header_hashes preference setting.
6 AltShift6 Inserts a footnote.
Tab ShiftTab Fold/Unfold current section.
Tab CtrlShiftTab Fold all sections under headings of a certain level.
PageUp PageDown CtrlAltShiftPageUp CtrlAltShiftPageDown Go to the previous/next heading of the same or higher level
PageUp PageDown CtrlShiftPageUp CtrlShiftPageDown Go to the previous/next heading

GFM Specific Features

Underscores in words doesn't mess with bold or italic style:


Fenced code blocks gets syntax highlighting inside:


Keyboard shortcuts gets highlighted like in GitHub:


Strikethrough is supported:


Commands for Command Palette

Fix Underlined Headers

Adjusts every setext-style header to add or remove = or - characters as needed to match the lengths of their header text.

Convert Underlined Headers to ATX

Converts every setext-style header into an ATX style header. If something is selected only the headers in the selections will be converted, otherwise the conversion will be applied to the whole view.

Add Missing Link Labels

Scans document for referenced link usages ([some link][some_ref] and [some link][]) and checks if they are all defined. If there are undefined link references, command will automatically create their definition snippet at the bottom of the file.

Markdown Lint

Performs lint on current Markdown file. See lint rules. Some of the linting rules are customizable via user settings file.

Switch List Bullet Type

Switches the highlighted list between numbered and bulleted style.

Magic Footnotes Command

Adds a footnote after the word under cursor. If cursor is already on a footnote, jumps to its definition or reference.

Gather Missing Footnotes

Add definition stubs (if there is none) for all footnotes references.

Jump Reference

Jumps cursor between definitions and references.

New Reference

Adds a new link under cursor.

New Inline Link

Adds a new inline link under cursor.

New Inline Image

Adds a new inline image under cursor.

New Image

Adds a new image under cursor.

New Footnote

Adds a footnote under cursor.

Delete Reference

Deletes the definition and references of a link.

Organize References

Sorts and gives a report on current link references usage.


The plugin contains 3 different Markdown flavors: Standard Markdown, GitHub flavored Markdown, MultiMarkdown. Default is GitHub flavored Markdown. If you want to set another one as default, open a Markdown file and select your flavor from the menu: View > Syntax > Open all with current extension as. You're done.

You may want to have a look at the default settings files. They are located at:

Packages/MarkdownEditing/Markdown.sublime-settings         [GitHub flavored Markdown]
Packages/MarkdownEditing/Markdown (Standard).sublime-settings

If you want to override any of the default settings, you can open the appropriate user settings file using the Preferences > Package Settings > Markdown Editing menu. Each flavor has a different settings file.

Bold and italic markers are configurable through ST shell variables. You can use Preferences > Package Settings > Markdown Editing menu to see the default settings file. In order to override it, copy & paste its content into the user settings file (Packages/User/Bold and Italic Markers.tmPreferences) from the menu and make your edits. It is pretty straightforward.

In order to activate the dark or the yellow theme, put one of these lines to your user settings file of the flavor (Packages/User/[flavor].sublime-settings):

"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Dark.tmTheme",
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Yellow.tmTheme",

If you want to go with your already existing theme, you can reenable it with the same method as above. Keep in mind that, that theme may not cover all the parts of the Markdown syntax that this plugin defines.

Additional color themes:

By default, when you install the plugin, files with these extensions will be assigned to Markdown syntax: “md”, “txt”, “mdown”, “markdown”, “markdn”. If you want to prevent any of these extensions to be opened as Markdown, follow these steps:

  1. Click on the language menu at bottom right
  2. Select “Open all with current extension as”
  3. Choose your preferred syntax for that extension


We are maintaining a tips section in our Wiki. Jump there to learn from others or share your experiences with others.

Similar Plugins

  • Knockdown

    Knockdown offers useful Markdown features and a custom Markdown theme. All of its unique features except its theme are ported to MarkdownEditing and some of them are actually improved further in MarkdownEditing.

  • Sublime Markdown Extended

  • SmartMarkdown

Known Bugs

  • Setext-style headers (=== and ---) do not show up in the symbol list. This is due to a Sublime Text limitation (see #158). However, we are able to put a placeholder to indicate the existence of the header. We encourage you to use Atx-style headers (#).

  • Installing for the first time while having markdown files opened may cause MarkdownEditing to behave unexpectedly on those files. Close and reopen those files to fix it.




MarkdownEditing was originally created by Brett Terpstra and has become a community project with the goal of consolidating the best features from the varied collection of Markdown packages for Sublime Text. Current development is headed up by Ali Ayas and Felix Hao.

Related blog posts from Brett: * http://brettterpstra.com/2012/05/17/markdown-editing-for-sublime-text-2-humble-beginnings/ * http://brettterpstra.com/2013/11/23/markdownediting-for-sublime-text-updates/

This plugin contains portions of code from Knockdown.

Footnote commands were submitted by J. Nicholas Geist and originated at geekabouttown.


You can support contributors of this project individually. Every contributor is welcomed to add his/her line below with any content. Ordering shall be alphabetically by GitHub username.


MarkdownEditing is released under the MIT License.