> > In order to have Pandoc filters with arguments I wrote pandoctools - > https://github.com/kiwi0fruit/pandoctools - a profile manager of text > processing pipelines that consist of Pandoc filters or any text CLI > filters. Profiles are special bash scripts so they are quite flexible. > > Introduction about workflow that uses pandoctools: > https://github.com/kiwi0fruit/atom-jupyter-pandoc-markdown > In order to have Pandoc filters with arguments I wrote pandoctools - https://github.com/kiwi0fruit/pandoctools - a profile manager of text processing pipelines that consist of Pandoc filters or any text CLI filters. Profiles are special bash scripts so they are quite flexible. Introduction about workflow that uses pandoctools: https://github.com/kiwi0fruit/atom-jupyter-pandoc-markdown Kolen Cheung написал: 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: > > 1. convert code block to table > 2. 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.) > 3. 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). > ​ > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7998338d-31dc-4a97-b938-6a035e2cd702%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.