mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-12 03:43:48 -05:00
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.