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/deflists.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 scripts/deflists.py (limited to 'scripts/deflists.py') diff --git a/scripts/deflists.py b/scripts/deflists.py deleted file mode 100755 index 502963419..000000000 --- a/scripts/deflists.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python - -""" -Pandoc filter to convert definition lists to bullet -lists with the defined terms in strong emphasis (for -compatibility with standard markdown). -""" - -from pandoc import toJSONFilter - -def deflists(key, value, format): - if key == 'DefinitionList': - return {'BulletList': [tobullet(t,d) for [t,d] in value]} - -def tobullet(term, defs): - return [{'Para': [{'Strong': term}]}] + [b for d in defs for b in d] - - -if __name__ == "__main__": - toJSONFilter(deflists) -- cgit v1.2.3