mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-12 11:53:49 -05:00
9d87cc19179496db50fb6d902987737c4b522e38
If a line begins with a word that matches one of the languages listed in `g:markdown_fenced_languages`, the line is wrongly detected as being the start of a fenced code block for that language. This commit ensures that a line is only treated as the start of fenced code block if the line begins with three or more consecutive backtick or tilde characters (with optional leading space characters).
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
Languages
Vim Script
100%