15 lines
293 B
Python
Executable file
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)
|