Files
pandoc/scripts/deemph.py
T

15 lines
292 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)