vim-pandoc-legacy
vim-pandoc-legacy copied to clipboard
Add option to support different markdown flavors
pandoc
supports multiple markdown flavors.
From pandoc
version 1.12.0.2:
- markdown
- markdown_github,
- markdown_mmd
- markdown_phpextra
- markdown_strict
It would be nice to be able to pick which versions are used by vim-pandoc
. Specifically, I need markdown_phpextra
for some of my projects for its table support.
An option like g:pandoc_markdown_flavor
and an overriding b:pandoc_markdown_flavor
for per-buffer settings would be ideal.
Thanks!
vim-pandoc/vim-pandoc-syntax already implements support for (simple, grid and pipe) tables. As the README says, vim-pandoc has been phased out in favor of the vim-pantondoc+vim-pandoc-syntax combo. The syntax file in this repo is now several months old.
That said, we could make it so the syntax highlighting works differently depending on what the buffer needs. We already do this in vim-pantondoc to enable the pandoc integration functions in textile files.
Oh. I read that and didn't grok it. I'll try the new plugins.