vim-pandoc-legacy icon indicating copy to clipboard operation
vim-pandoc-legacy copied to clipboard

Add option to support different markdown flavors

Open docwhat opened this issue 10 years ago • 2 comments

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!

docwhat avatar May 28 '14 15:05 docwhat

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.

fmoralesc avatar May 28 '14 22:05 fmoralesc

Oh. I read that and didn't grok it. I'll try the new plugins.

docwhat avatar May 28 '14 23:05 docwhat