From: Libor Wagner Date: Tue, 20 Nov 2018 15:21:18 +0000 (+0100) Subject: Add option to disable code blocks concealing X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/7f17091c09ab1daa4866fa94a8d646b9e3641c1a?ds=inline;hp=--cc Add option to disable code blocks concealing --- 7f17091c09ab1daa4866fa94a8d646b9e3641c1a diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 68d1d3d..659df91 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -734,7 +734,7 @@ function! s:MarkdownHighlightSources(force) let include = '@' . toupper(filetype) endif 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) ? ' concealends' : '') + 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) let b:mkd_known_filetypes[ft] = 1