preservim / vim-markdown

Markdown Vim Mode
4.69k stars 524 forks source link

Use ^\s*```$ for mkdCodeEnd #522

Open tomtomjhj opened 4 years ago

tomtomjhj commented 4 years ago

Some languages use markdown style fenced code block for documenting examples. Current pattern for mkdCodeEnd breaks that.

Current: image

Fixed: image

lggruspe commented 1 year ago

I'm a little confused why this example doesn't seem to be broken prior to this PR. The GitHub highlighting is off, but in VIM the whole thing is just a block quote. Are we not catching those at all?

It's a bug in mkdBlockquote. It doesn't recognize code blocks or even italics (#583).