blob: b86cd1520c1875771e43bdef91a910466a75ff97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env python
"""
Pandoc filter to convert all regular text to uppercase.
Code, link URLs, etc. are not affected.
"""
from pandoc import toJSONFilter
def caps(key, value, format):
if key == 'Str':
return {'Str': value.upper()}
if __name__ == "__main__":
toJSONFilter(caps)
|