X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3696e02d661de558d068d3b88d6fb1bc81c90f3c..ce80d929db5305af902a0191c5b1153b1d04d10c:/plugin/mkd.vim diff --git a/plugin/mkd.vim b/plugin/mkd.vim index 4542ced..a369790 100644 --- a/plugin/mkd.vim +++ b/plugin/mkd.vim @@ -22,7 +22,7 @@ function! s:Markdown_highlight_sources() let group = 'mkdSnippet' . toupper(ft) let include = s:syntax_include(ft) - let command = 'syntax region %s matchgroup=%s start="```%s" matchgroup=%s end="```" keepend contains=%s%s' + let command = 'syntax region %s matchgroup=%s start="^\s*```%s$" matchgroup=%s end="\s*```$" keepend contains=%s%s' execute printf(command, group, startgroup, ft, endgroup, include, has('conceal') ? ' concealends' : '') execute printf('syntax cluster mkdNonListItem add=%s', group)