Skip to content

Instantly share code, notes, and snippets.

@FilterKaapi
FilterKaapi / minted.py
Created October 7, 2015 10:19 — forked from jepio/minted.py
Pandoc filter to use minted for syntax highlighting
#!/usr/bin/env python3
'''
Filter to wrap Pandoc's CodeBlocks into minted blocks when using latex.
Pandoc's `fence_code_attributes` can be used to provide:
- the language (first class)
- minted's argumentless options (following classes)
- minted's options with arguments (attributes)
'''
@FilterKaapi
FilterKaapi / Gemfile
Last active August 29, 2015 14:07
Server Side JS with ExecJS in Ruby
gem 'execjs'
@FilterKaapi
FilterKaapi / trial
Last active August 29, 2015 14:01
testing
def square(x)
return x*x
end