Closed padawin closed 3 years ago
I'm the guy who posted this originally to StackOverflow, and this does actually appear to fix the problem for me, at least in my limited testing so far. I've dropped a syntax clear markdownCodeBlock
followed by the patched line into my ~/.vim/after/syntax/markdown.vim
so I'll post here if I find anything on which this breaks.
At the moment, any line starting with 4 spaces or a tab is considered as a code block, which causes issues in code like this:
The line "very short lines indeed." is considered as a code block (and therefore, the short is not italised.
The change of this commit enforces a code block to be preceeded with an empty line. This gives the following behaviour:
For context, this comes from https://stackoverflow.com/q/55645317/3866623
Here is a screenshot with a result (code colored in blue):