vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
426 stars 61 forks source link

Escaped asterisk treated as emphasis #181

Open twsh opened 8 years ago

twsh commented 8 years ago
*foo\** bar

The escaped asterisk ('*') is treated as the end of emphasis, and the real end of emphasis is treated as the start of a new emphasis. The whole line ends up highlighted. But escaped asterisks are literal asterisks, so presumably they shouldn't be treated in this way.

anntzer commented 7 years ago

On a similar issue,

hello ** world **

is highlighted as bold, even though it should not (see https://pandoc.org/MANUAL.html#emphasis or just test it). Interestingly enough,

hello * world *

is correctly NOT highlighted as emphasis.