mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-03 20:57:48 +00:00
15 lines
292 B
Python
Executable File
15 lines
292 B
Python
Executable File
#!/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)
|