mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-28 18:35:49 +00:00
12 lines
273 B
Python
Executable File
12 lines
273 B
Python
Executable File
#!/usr/bin/env python
|
|
from pandoc import toJSONFilter, rawInline
|
|
|
|
def myemph(k, v, f):
|
|
if k == 'Emph' and f == 'latex':
|
|
v.insert(0, rawInline("latex", "\\myemph{"))
|
|
v.append(rawInline("latex", "}"))
|
|
return v
|
|
|
|
if __name__ == "__main__":
|
|
toJSONFilter(myemph)
|