mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-14 21:03:48 -05:00
59a551feb24325498a5cf3a7f7fe4565361c1193
Most markdown implementations do not allow emphasis to span multiple paragraphs. For example, commonmark.js, Markdown.pl, pandoc, and Python-Markdown compile the following markdown ```markdown *asdf asdf* ``` to ```html <p>*asdf</p> <p>asdf*</p> ``` Some implementations compile it to ```html <p><em>asdf</em></p> <p>asdf*</p> ``` See https://johnmacfarlane.net/babelmark2/?normalize=1&text=*asdf%0A%0Aasdf* Adding "^$" to :syn-end makes the emphasis end at an empty line like the second compiled HTML above. While not perfect, it prevents an unmatched `*` from emphasizing the entirety of the following text.
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%