jgm/pandoc — Issue #422: Highlighting lost when using `--self-contained`
Author: emilaxelsson
Created: 2012-02-17 11:33:03+00:00
State: open

When generating HTML from a file with the following contents

~~~~~~~~~~{.haskell}
main :: IO ()
main = return ()
~~~~~~~~~~{.haskell}

using the command

pandoc -s test.md -o test.html --self-contained

I don't get any syntax highlighting. At least it doesn't show in
Firefox. If I remove `--self-contained`, things work as expected.

The difference in the HTML is that there are lines like

code > span.kw { color: #007020; font-weight: bold; }

in the self-contained version. The non-self-contained version has

code > span.kw { color: #007020; font-weight: bold; }

This has been tested on the version on the Master branch.

> pandoc --version
pandoc 1.9.1.1
Compiled with citeproc-hs 0.3.4, texmath 0.6.0.3, highlighting-kate 0.5.0.5.