diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-28 12:24:01 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-28 12:24:01 +0100 |
| commit | 823302458ec6c53455a3f34674415c43ce6a3187 (patch) | |
| tree | 92168b44b01f5b2236b7cdf331e227c4790431ee /snippets/markdown.snippets | |
| parent | 9ea6111717518625cbd28a020493ec06610ff01e (diff) | |
Added snippets directory
Diffstat (limited to 'snippets/markdown.snippets')
| -rw-r--r-- | snippets/markdown.snippets | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/snippets/markdown.snippets b/snippets/markdown.snippets new file mode 100644 index 0000000..364066c --- /dev/null +++ b/snippets/markdown.snippets @@ -0,0 +1,144 @@ +# Markdown + +# Includes octopress (http://octopress.org/) snippets + +# The suffix `c` stands for "Clipboard". + +snippet [ + [${1:text}](https://${2:address}) +snippet [* + [${1:link}](${2:`@*`}) +snippet [c + [${1:link}](${2:`@+`}) +snippet [" + [${1:text}](https://${2:address} "${3:title}") +snippet ["* + [${1:link}](${2:`@*`} "${3:title}") +snippet ["c + [${1:link}](${2:`@+`} "${3:title}") +snippet [: + [${1:id}]: https://${2:url} + +snippet [:* + [${1:id}]: ${2:`@*`} + +snippet [:c + [${1:id}]: ${2:`@+`} + +snippet [:" + [${1:id}]: https://${2:url} "${3:title}" + +snippet [:"* + [${1:id}]: ${2:`@*`} "${3:title}" + +snippet [:"c + [${1:id}]: ${2:`@+`} "${3:title}" + +snippet  +snippet  +snippet  +snippet  +snippet  +snippet  +snippet ![: + ![${1:id}]: ${2:url} + +snippet ![:* + ![${1:id}]: ${2:`@*`} + +snippet ![:" + ![${1:id}]: ${2:url} "${3:title}" + +snippet ![:"* + ![${1:id}]: ${2:`@*`} "${3:title}" + +snippet ![:"c + ![${1:id}]: ${2:`@+`} "${3:title}" + +snippet < + <http://${1:url}> +snippet <* + <`@*`> +snippet <c + <`@+`> +snippet ** + **${1:bold}** +snippet __ + __${1:bold}__ +snippet === + `repeat('=', strlen(getline(line('.') - 3)))` + + ${0} +snippet - + - ${0} +snippet --- + `repeat('-', strlen(getline(line('.') - 3)))` + + ${0} +snippet blockquote + {% blockquote %} + ${0:quote} + {% endblockquote %} + +snippet blockquote-author + {% blockquote ${1:author}, ${2:title} %} + ${0:quote} + {% endblockquote %} + +snippet blockquote-link + {% blockquote ${1:author} ${2:URL} ${3:link_text} %} + ${0:quote} + {% endblockquote %} + +snippet ``` + \`\`\`${1} + ${0:${VISUAL}} + \`\`\` + +# Language. +snippet ```l + \`\`\`${1:language} + ${2:code} + \`\`\` + +snippet codeblock-short + {% codeblock %} + ${0:code_snippet} + {% endcodeblock %} + +snippet codeblock-full + {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %} + ${0:code_snippet} + {% endcodeblock %} + +snippet gist-full + {% gist ${1:gist_id} ${0:filename} %} + +snippet gist-short + {% gist ${0:gist_id} %} + +snippet img + {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${0:alt_text} %} + +snippet youtube + {% youtube ${0:video_id} %} + +snippet tb + | ${0:factors} | ${1:a} | ${2:b} | + | ------------- |------------- | ------- | + | ${3:f1} | Y | N | + | ${4:f2} | Y | N | + +# The quote should appear only once in the text. It is inherently part of it. +# See http://octopress.org/docs/plugins/pullquote/ for more info. + +snippet pullquote + {% pullquote %} + ${1:text} {" ${2:quote} "} ${0:text} + {% endpullquote %} |
