From 70386a6a54c54189b8456b547a657873481a70b7 Mon Sep 17 00:00:00 2001 From: John MacFarlane <fiddlosopher@gmail.com> Date: Sun, 18 Aug 2013 15:36:54 -0700 Subject: Removed scripts directory. This has been put in its own github repo: https://github.com/jgm/pandoc-filters-python --- scripts/myemph.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 scripts/myemph.py (limited to 'scripts/myemph.py') diff --git a/scripts/myemph.py b/scripts/myemph.py deleted file mode 100755 index 2a322b385..000000000 --- a/scripts/myemph.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python -from pandoc import toJSONFilter - -""" -Pandoc filter that causes emphasis to be rendered using -the custom macro '\myemph{...}' rather than '\emph{...}' -in latex. Other output formats are unaffected. -""" - -def latex(s): - return {'RawInline': ['latex', s]} - -def myemph(k, v, f): - if k == 'Emph' and f == 'latex': - return [latex('\\myemph{')] + v + [latex('}')] - -if __name__ == "__main__": - toJSONFilter(myemph) -- cgit v1.2.3