Skip to content

Instantly share code, notes, and snippets.

@akanehara
akanehara / highlight.css
Last active March 7, 2016 09:12
pandoc code-highlight css
code > span.kw { color: #268BD2; font-weight: bold; }
code > span.dt { color: #268BD2; }
code > span.dv { color: #D33682; }
code > span.bn { color: #D33682; }
code > span.fl { color: #D33682; }
code > span.ch { color: #4070a0; }
code > span.st { color: #2AA198; }
code > span.co { color: #93A1A1; font-style: italic; }
code > span.ot { color: #A57800; }
code > span.al { color: #CB4B16; font-weight: bold; }
@svenax
svenax / handleBlockdiag.hs
Created September 18, 2012 15:50
Pandoc filter for http://blockdiag.com diagrams
Compile the Haskell code with ghc and put it somewhere convenient. Then call Pandoc as:
pandoc -t json test.md | handleBlockdiag png | pandoc -f json -o test.html