Currently, if one need to pass arguments to a filter, one need to pipe it through.
It would be convenient in some cases to allow passing argument to filters. e.g.
pandoc -F "pantable -t csv" -s -o example.tex example.md # which is equiv. to pandoc -t json -s example.md | pantable -t csv | pandoc -f json -s -o example.tex
To elaborate a little bit further: I want to write a filter that at the same time do:
- convert code block to table
- convert pandoc tables to code block, potentially with different output code formats (e.g. csv, yaml, json, etc. or even other kinds e.g. HTML, Div with CSS table, etc.)
- standalone cli. i.e. not a filter
Right now (1) and (2) are mutually exclusive and has to be split into 2 filters. (1) and (3) can potentially be written in the same executable, but it is uglier and pointless to do so without including (2).