Alex Vear a2e123a288 Prevent the folding of heading syntax in code fences
Previously in Markdown files, Vim would treat heading syntax in code
fences as Markdown headers. This commit ensures that only headers will
be folded by checking the 'synIDattr' of the item.

E.g. The comment in this code snippet would have been treated as a
Markdown header.

```sh
 # This is a comment
 echo "Hello world"
```
2019-08-15 18:53:44 -04:00
2018-02-04 23:47:43 -05:00
2019-07-28 19:37:25 -04:00

Vim Markdown runtime files

This is the development version of Vim's included syntax highlighting and filetype plugins for Markdown. Generally you don't need to install these if you are running a recent version of Vim.

If you want to enable fenced code block syntax highlighting in your markdown documents you can enable it in your .vimrc like so:

let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']

To disable markdown syntax concealing add the following to your vimrc:

let g:markdown_syntax_conceal = 0

Syntax highlight is synchronized in 50 lines. It may cause collapsed highlighting at large fenced code block. In the case, please set larger value in your vimrc:

let g:markdown_minlines = 100

Note that setting too large value may cause bad performance on highlighting.

License

Copyright © Tim Pope. Distributed under the same terms as Vim itself. See :help license.

Description
Vim Markdown runtime files
Readme 386 KiB
Languages
Vim Script 100%