Can Pandoc output syntax-highlighted codeblocks from a vimwiki source?

Viewed 237

For markdown Pandoc's syntax highlighting works great, for example for a file test.md that looks like this

some text...

```sh
for i in {1,2,3}; do echo ${i}; done
```

the command pandoc -f markdown -t html -s --highlight-style=zenburn -o out.html test.md generates html-output out.html that basically has the syntax highlighting specified in zenburn "baked in" and a browser renders it as you'd want:

screenshot of markdown-generated html in browser

However for the vimwiki-format (which pandoc supports) this doesn't seem to work even though I haven't found anything saying the syntax highlighting was limited only to some source formats.

Basically: Can I get pandoc to do the same style of syntax highlighting in the html output if my source format is vimwiki and my source looks like this:

some text...

{{{sh
for i in {1,2,3}; do echo ${i}; done
}}}

because doing pandoc -f vimwiki -t html -s --highlight-style=zenburn -o out.html test.wiki yields (what you can also tell from the generated html) this:

screenshot of vimwiki-generated html in browser

0 Answers
Related