pandoc/scripts/deemph.py
2013-08-14 22:20:41 -07:00

15 lines
293 B
Python
Executable file

#!/usr/bin/env python
from pandoc import walk, toJSONFilter
from caps import caps
"""
Pandoc filter that causes emphasized text to be displayed
in ALL CAPS.
"""
def deemph(key, val, fmt):
if key == 'Emph':
return walk(val, caps, fmt)
if __name__ == "__main__":
toJSONFilter(deemph)