mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Added snippets for markdown-mode from Peng Deng.
This commit is contained in:
parent
fc059912e9
commit
1f62f9760f
5
snippets/text-mode/markdown-mode/+
Normal file
5
snippets/text-mode/markdown-mode/+
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#name : Unordered List
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
+ ${1:Text}
|
||||||
|
+$0
|
5
snippets/text-mode/markdown-mode/-
Normal file
5
snippets/text-mode/markdown-mode/-
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#name : Unordered List
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
- ${1:Text}
|
||||||
|
-$0
|
4
snippets/text-mode/markdown-mode/_
Normal file
4
snippets/text-mode/markdown-mode/_
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#name : Emphasis
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
_${1:Text}_ $0
|
4
snippets/text-mode/markdown-mode/__
Normal file
4
snippets/text-mode/markdown-mode/__
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#name : Strong
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
**${1:Text}** $0
|
4
snippets/text-mode/markdown-mode/`
Normal file
4
snippets/text-mode/markdown-mode/`
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#name : Inline Code
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
\`${1:Code}\` $0
|
6
snippets/text-mode/markdown-mode/h1.1
Normal file
6
snippets/text-mode/markdown-mode/h1.1
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#name : Header 1 (#)
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
# ${1:Header 1} #
|
||||||
|
|
||||||
|
$0
|
7
snippets/text-mode/markdown-mode/h1.2
Normal file
7
snippets/text-mode/markdown-mode/h1.2
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#name : Header 1 (=)
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
${1:Header 1}
|
||||||
|
${1:$(make-string (string-width text) ?\=)}
|
||||||
|
|
||||||
|
$0
|
6
snippets/text-mode/markdown-mode/h2.1
Normal file
6
snippets/text-mode/markdown-mode/h2.1
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#name : Header 2 (##)
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
## ${1:Header 1} ##
|
||||||
|
|
||||||
|
$0
|
7
snippets/text-mode/markdown-mode/h2.2
Normal file
7
snippets/text-mode/markdown-mode/h2.2
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#name : Header 2 (-)
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
${1:Header 2}
|
||||||
|
${1:$(make-string (string-width text) ?\-)}
|
||||||
|
|
||||||
|
$0
|
6
snippets/text-mode/markdown-mode/h3
Normal file
6
snippets/text-mode/markdown-mode/h3
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#name : Header 3
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
### ${1:Header 3} ###
|
||||||
|
|
||||||
|
$0
|
6
snippets/text-mode/markdown-mode/h4
Normal file
6
snippets/text-mode/markdown-mode/h4
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#name : Header 4
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
#### ${1:Header 4} ####
|
||||||
|
|
||||||
|
$0
|
6
snippets/text-mode/markdown-mode/h5
Normal file
6
snippets/text-mode/markdown-mode/h5
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#name : Header 5
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
##### ${1:Header 5} #####
|
||||||
|
|
||||||
|
$0
|
6
snippets/text-mode/markdown-mode/h6
Normal file
6
snippets/text-mode/markdown-mode/h6
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#name : Header 6
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
###### ${1:Header 6} ######
|
||||||
|
|
||||||
|
$0
|
7
snippets/text-mode/markdown-mode/hr.1
Normal file
7
snippets/text-mode/markdown-mode/hr.1
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#name : Horizontal Rule (-)
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
|
||||||
|
----------
|
||||||
|
|
||||||
|
$0
|
7
snippets/text-mode/markdown-mode/hr.2
Normal file
7
snippets/text-mode/markdown-mode/hr.2
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#name : Horizontal Rule (*)
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
|
||||||
|
*******
|
||||||
|
|
||||||
|
$0
|
4
snippets/text-mode/markdown-mode/img
Normal file
4
snippets/text-mode/markdown-mode/img
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#name : Image
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
 $0
|
4
snippets/text-mode/markdown-mode/link
Normal file
4
snippets/text-mode/markdown-mode/link
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#name : Link
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
[${1:Link Text}](${2:URL} $3) $0
|
5
snippets/text-mode/markdown-mode/ol
Normal file
5
snippets/text-mode/markdown-mode/ol
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#name : Ordered List
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
${1:1}. ${2:Text}
|
||||||
|
${1:$(number-to-string (1+ (string-to-number text)))}. $0
|
4
snippets/text-mode/markdown-mode/rimg
Normal file
4
snippets/text-mode/markdown-mode/rimg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#name : Referenced Image
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
![${1:Alt Text}][$2] $0
|
5
snippets/text-mode/markdown-mode/rlb
Normal file
5
snippets/text-mode/markdown-mode/rlb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#name : Reference Label
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
[${1:Reference}]: ${2:URL} $3
|
||||||
|
$0
|
4
snippets/text-mode/markdown-mode/rlink
Normal file
4
snippets/text-mode/markdown-mode/rlink
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#name : Reference Link
|
||||||
|
#contributor: Peng Deng <dengpeng@gmail.com>
|
||||||
|
# --
|
||||||
|
[${1:Link Text}][$2] $0
|
Loading…
x
Reference in New Issue
Block a user