Skip to content

Commit

Permalink
Add option to disable code blocks concealing
Browse files Browse the repository at this point in the history
  • Loading branch information
Libor Wagner committed Nov 20, 2018
1 parent 52ee2eb commit 7f17091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f17091

Please sign in to comment.