From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14013 Path: news.gmane.org!not-for-mail From: Matthew Pickering Newsgroups: gmane.text.pandoc Subject: Re: support arguments on filters Date: Fri, 27 Nov 2015 07:13:07 -0800 (PST) Message-ID: <52241fed-9d94-4dc9-8c48-0affd6325878@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8858_1004190583.1448637187448" X-Trace: ger.gmane.org 1448637195 8109 80.91.229.3 (27 Nov 2015 15:13:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 15:13:15 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCO2LGEC4AIBBBHG4GZAKGQE3OPKWFQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 27 16:13:08 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ig0-f186.google.com ([209.85.213.186]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a2Khu-00076p-7e for gtp-pandoc-discuss@m.gmane.org; Fri, 27 Nov 2015 16:13:06 +0100 Original-Received: by igbfn5 with SMTP id fn5sf6075521igb.1 for ; Fri, 27 Nov 2015 07:13:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=gJXHnqjsoSo01glUwcaQuh8aQLUcjf0H1dHclhJo+pw=; b=vDAX4IavkNHIqLwWbHArCs8wY0y6qrSmhBBkpd/X85TuPpyKPCvKBXHQEHqBjLj678 7Q7GvRcLEMRn6/dpM/jB0Hms76dfnoNnLAvrEVI2/PHPxl2+B3I/IVdYkNjYsGvZA6eG PY+g0UcZpbQ42pQfpdyREKI3AwsNk6/dMfxBKYX/LbqO4n8+j/Mz14QQ1+Gy7yQvXm3U 7OtqWQfVr4cU2ibCY3zz/8l2LuB+44Fp6VFNJ1+fZtkqal46fQPlMnO5o11ptfeTRMTa SW2rvlFLPt/0N7Tqe70J7sBy0gLNYCzCxvpMvljQ0TTUSHHBlhQ/mOR/nz8QlxN5NnAX hJWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=gJXHnqjsoSo01glUwcaQuh8aQLUcjf0H1dHclhJo+pw=; b=ZAYNxWnG1aKCLfDtevNnFFUuH1wR5L6XjhN428GvthzhC46AQ8L82HWCpY9F9IrxY+ JDl44DH8PvYDvuBsFKQdUPNvJeMRz7Yuygc9ewHI+Rp19Ez/Ca3wJIU48Lp/jC1/5wtu KwVqXfhVctVB70J2M3TXZJYUzc2bV6Lxa2wg93ReEdP0vAdzVeQQ5RkBeiBYTd/d6IcX gvTLBn0JYbMnk+Wt9FU1aMOl5UkAynQR4PXDau/cWClMJ1x5SMZYtLx+0sVj52gXnvwb MhJM24RkcmQvZ4Rcjy9GFaCqnE+iaDzJ8vHi8eH6iep6VIJYT1OqbRJgujLTTFHbq6wZ 3lNQ== X-Received: by 10.50.142.66 with SMTP id ru2mr123736igb.3.1448637188952; Fri, 27 Nov 2015 07:13:08 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.8.199 with SMTP id h68ls464795ioi.36.gmail; Fri, 27 Nov 2015 07:13:08 -0800 (PST) X-Received: by 10.50.119.68 with SMTP id ks4mr127132igb.2.1448637188487; Fri, 27 Nov 2015 07:13:08 -0800 (PST) In-Reply-To: X-Original-Sender: matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14013 Archived-At: ------=_Part_8858_1004190583.1448637187448 Content-Type: multipart/alternative; boundary="----=_Part_8859_1475229234.1448637187449" ------=_Part_8859_1475229234.1448637187449 Content-Type: text/plain; charset=UTF-8 I still think this would be nice to have for more complicated filters. On Saturday, September 27, 2014 at 12:13:59 PM UTC+1, Aaron O'leary wrote: > > Currently external filters implicitly take the name of the output > format as the first argument, but is there any reason not to allow > them to take more explicit arguments? > > If there is way to do this already I can't work it out, beyond piping > directly to and from the filter: > > pandoc file.md --to json | myfilter --arg1 --arg2 | pandoc --from > json --to whatever > > > I'm thinking of a format like > > pandoc file.md --to whatever --filter='myfilter --arg1 --arg2' > > but perhaps we'd want a separate --filter_args argument. > -- 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/52241fed-9d94-4dc9-8c48-0affd6325878%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_8859_1475229234.1448637187449 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I still think this would be nice to have for more complica= ted filters.=C2=A0

On Saturday, September 27, 2014 at 12:13:59 PM UT= C+1, Aaron O'leary wrote:
C= urrently external filters implicitly take the name of the output
format as the first argument, but is there any reason not to allow
them to take more explicit arguments?

If there is way to do this already I can't work it out, beyond pipi= ng
directly to and from the filter:

=C2=A0 =C2=A0 pandoc file.md --to json | myfilter = --arg1 --arg2 | pandoc --from
json --to whatever


I'm thinking of a format like

=C2=A0 =C2=A0 pandoc file.md --to whatever --filte= r=3D'myfilter --arg1 --arg2'

but perhaps we'd want a separate --filter_args argument.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/52241fed-9d94-4dc9-8c48-0affd6325878%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_8859_1475229234.1448637187449-- ------=_Part_8858_1004190583.1448637187448--