Which additional diagnostics could I run to pin down the problem with the following filter:
#!/usr/bin/env python
from pandocfilters import toJSONFilter, Str, Emph
def change(key, value, format, meta):
if format == 'odt':
if key == 'Str' and value == 'and':
return(Emph(Str(value)))
if __name__ == "__main__":
toJSONFilter(change)
Using "pandoc -o text.odt --filter filter.py text.md" gives me the error message:
Error running filter filter.py:
Error in $.blocks[0].c[2].c: expected [a], encountered Object
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e6346e7e-ab9b-4df9-9bec-88bec98fcd93n%40googlegroups.com.