All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
Add variable 'g:vim_markdown_conceal' to enable/disable markdown conceal.
In vimrc,
let g:vim_markdown_conceal = 1 " conceal enable
let g:vim_markdown_conceal = 0 " conceal disable
Default : 1
For example, conceal `[link text](link url)` as just `link text`.
For example, conceal `[link text](link url)` as just `link text`.
-To enable/disable conceal use Vim's standard conceal configuration.
+To disable conceal, add the following to your '.vimrc':
+let g:vim_markdown_conceal = 0
```
### Syntax extensions
```
### Syntax extensions
For example, conceal '[link text](link url)' as just 'link text'.
For example, conceal '[link text](link url)' as just 'link text'.
-To enable/disable conceal use Vim's standard conceal configuration.
+To disable conceal, add the following to your '.vimrc':
+ let g:vim_markdown_conceal = 0
<
-------------------------------------------------------------------------------
*vim-markdown-syntax-extensions*
<
-------------------------------------------------------------------------------
*vim-markdown-syntax-extensions*
let include = '@' . toupper(filetype)
endif
let command = 'syntax region %s matchgroup=%s start="^\s*```%s$" matchgroup=%s end="\s*```$" keepend contains=%s%s'
let include = '@' . toupper(filetype)
endif
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(command, group, startgroup, ft, endgroup, include, has('conceal') && get(g:, 'vim_markdown_conceal', 1) ? ' concealends' : '')
execute printf('syntax cluster mkdNonListItem add=%s', group)
let b:mkd_known_filetypes[ft] = 1
execute printf('syntax cluster mkdNonListItem add=%s', group)
let b:mkd_known_filetypes[ft] = 1
let s:conceal = ''
let s:concealends = ''
let s:conceal = ''
let s:concealends = ''
+if has('conceal') && get(g:, 'vim_markdown_conceal', 1)
let s:conceal = ' conceal'
let s:concealends = ' concealends'
endif
let s:conceal = ' conceal'
let s:concealends = ' concealends'
endif