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

更新时间:2020-01-27 04:18:26

Browse

Stick​With​Markdown​Snippets

by UniFreak ST3 New

Still markdown syntax flavored markdown snippets

Details

Installs

  • Total 18
  • Win 4
  • Mac 10
  • Linux 4
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 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13
Windows 0 0 0 0 1 0 0 0 0 1 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 0 0 0 0 0 0 0 0 0
Mac 1 0 0 0 2 0 3 1 0 0 1 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 0 0 0 0 0 0 0 0
Linux 0 1 0 0 0 0 0 1 0 0 1 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 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")