StickWithMarkdownSnippets
Still markdown syntax flavored markdown snippets
Details
Installs
- Total 346
- Win 167
- Mac 109
- Linux 70
Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Linux | 0 | 0 | 1 | 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 | 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
:
- Make sure you have
Package Control
installed, see https://packagecontrol.io/installation - Open Command Pallete, and run
Package Control: Install Package
- Search for
Stick With Markdown Snippets
and install
Another way is to clone source from github:
- Browse into your sublime text's package folder
- 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
NOTE: After updating of Markdown Editing
, I found that snippet trigger “
doesn't work anymore. To fix this, you can open its user's key binding setting and
find these lines and comment out them:
{ "keys": ["`"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Skip Closing Character.sublime-macro"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^`", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
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
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")