diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-08-18 15:36:54 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-08-18 15:37:27 -0700 |
commit | 70386a6a54c54189b8456b547a657873481a70b7 (patch) | |
tree | ff5d2ce432e0145f65c0728e66caf6cd193d48ac /scripts/myemph.py | |
parent | 8d441af3da4709fd48a44e860d5a0cd4d35792af (diff) | |
download | pandoc-70386a6a54c54189b8456b547a657873481a70b7.tar.gz |
Removed scripts directory.
This has been put in its own github repo:
https://github.com/jgm/pandoc-filters-python
Diffstat (limited to 'scripts/myemph.py')
-rwxr-xr-x | scripts/myemph.py | 18 |
1 files changed, 0 insertions, 18 deletions
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) |