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

Stick​With​Markdown​Snippets

by UniFreak ST3

Still markdown syntax flavored markdown snippets

Details

  • 1.0.4
  • github.​com
  • github.​com
  • 5 months ago
  • 31 minutes ago
  • 5 months ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

Stick with Markdown Snippets

中文请见 这里

We love the simplicity of markdown syntax, but there are a few that are actually complex, like table, code block, and links…

This plugin come to rescue

Though obviously there are other markdown snippets plugins out there, but this plugin try to stick with markdown flavour syntax

Feature

  • Stick with markdown syntax snippets
  • Simplify table, code block, url and image link creation
  • Dynamically add table column and row
  • Configurable code block language alias

Installation

There are two ways to install, the first and recommended way is via Package Control:

  1. Make sure you have Package Control installed, see https://packagecontrol.io/installation
  2. Open Command Pallete, and run Package Control: Install Package
  3. Search for Stick With Markdown Snippets and install

Another way is to clone source from github:

  1. Browse into your sublime text's package folder
  2. Run git clone https://github.com/UniFreak/SublimeMdSnippets.git

Usage

This plugin provide four snippet: table, code block, url link and image link. Just type in trigger then press tab to generate

Table

Trigger by: |||

Result in:

|header|header|
|------|------|
|content|content|

More conveniently, you can add table column and table row dynamically:

  • when cursor in last header cell, use tab to add column, use enter to move to table body
  • when cursor in last table body cell, use enter to add row, use tab to tab out the table snippet

This gif will make things clear

table gif

Code Block

Trigger by: ``.

Result in:

```
code

```

You can also specify language alias like ``js, then it will be expand to

```javascript
code

```

You can specify language alias in setting file. Default setting is like this:

{
    "lang_alias": {
        "js": "javascript",
        "py": "python",
        "md": "markdown",
        "rb": "ruby"
    }
}

Image Link

Trigger by: ![

Result in: ![alt text](img path "optional title")

Url Link

Trigger by: [[

Result in: [text](url "optional title")