preservim / vim-pencil

Rethinking Vim as a tool for writing
Other
1.58k stars 39 forks source link

autoformat not engaging if inline backquoted `text` is on line #22

Closed reedes closed 9 years ago

reedes commented 9 years ago

Using the tpope/vim-markdown syntax plugin with pencil.

In 'hard' mode.

reedes commented 9 years ago

Looks like I'll have to special-case markdownCode.

So only disable autoformat if markdownCode is exclusive to the line.

That'll ensure that autoformat is disabled on fenced code blocks but not on lines containing isolated inline code.

reedes commented 9 years ago

New implementation does not special case markdownCode but instead uses a whitelist for inline markup.

See g:pencil#autoformat_inline_whitelist for list of whitelisted syntax highlights.