preservim / vim-markdown

Markdown Vim Mode
4.68k stars 521 forks source link

tilde-fenced code blocks rendered as strikethrough #572

Open azrdev opened 2 years ago

azrdev commented 2 years ago

Writing markdown, I frequently use tilde ~ instead of backticks ` to fence code blocks:

text

~~~python
# some code 
~~~

However, vim-markdown (currently on master@ b4dc23e ) renders these not as code but strike-through text, since I'm also using let g:vim_markdown_strikethrough = 1. When disabling that option, the tilde-fenced code blocks are correctly recognized as such.