From fbbe71e534ea621ad022c6c44649ce20dd4f334b Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 20 Nov 2014 19:17:18 +0100 Subject: [PATCH] Fix markdown fenced code blocks. Broken because backticks were interpreted as vim code execution. Also simplified the trigger which was too long and unintuitive. --- snippets/markdown.snippets | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/snippets/markdown.snippets b/snippets/markdown.snippets index fd2f297..b353569 100644 --- a/snippets/markdown.snippets +++ b/snippets/markdown.snippets @@ -46,15 +46,16 @@ snippet blockquote-link ${0:quote} {% endblockquote %} -snippet bt-codeblock-short - ``` - ${0:code_snippet} - ``` +snippet ``` + \`\`\` + ${1:code} + \`\`\` -snippet bt-codeblock-full - ``` ${1:language} ${2:title} ${3:URL} ${4:link_text} - ${0:code_snippet} - ``` +# Language. +snippet ```l + \`\`\`${1:language} + ${2:code} + \`\`\` snippet codeblock-short {% codeblock %}