Markdown allows you to use inline HTML. From the spec:
For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags.
That explains the behavior of the filetype plugin.
Disabling this
It would be best if you could just disable the mentioned live preview; as this is probably triggered by an :autocmd BufWritePost <buffer> ...
, you could probably disable it via something like this in your ~/.vim/after/ftplugin/markdown.vim
:
:autocmd! BufWritePost <buffer>
To completely get rid of the HTML stuff, copy the $VIMRUNTIME/ftplugin/markdown.vim
to your user's ~/.vim/ftplugin/markdown.vim
, and delete / comment out the :runtime
command. The b:did_ftplugin
check will ensure that the original ftplugin, though still being sourced, does nothing.