From 7bbe27b02c458d66897231650aea8ccc2c1ca1b0 Mon Sep 17 00:00:00 2001 From: Jaehwang Jerry Jung Date: Tue, 29 Sep 2020 03:53:51 +0000 Subject: [PATCH] Use ^\s*```$ for mkdCodeEnd --- ftplugin/markdown.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index d6e51c21..6981b23a 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -819,7 +819,7 @@ function! s:MarkdownHighlightSources(force) else let include = '@' . toupper(filetype) endif - let command = 'syntax region %s matchgroup=%s start="^\s*```\s*%s.*$" matchgroup=%s end="\s*```$" keepend contains=%s%s' + let command = 'syntax region %s matchgroup=%s start="^\s*```\s*%s.*$" matchgroup=%s end="^\s*```$" keepend contains=%s%s' execute printf(command, group, startgroup, ft, endgroup, include, has('conceal') && get(g:, 'vim_markdown_conceal', 1) && get(g:, 'vim_markdown_conceal_code_blocks', 1) ? ' concealends' : '') execute printf('syntax cluster mkdNonListItem add=%s', group)