From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16635 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Filter with arguments Date: Sun, 8 Jan 2017 10:09:43 +0100 Message-ID: <20170108090942.GA41105@Johns-MBP.home> References: <20170106114647.GG791@Administrateurs-iMac-3.local> <1239e0f1-2538-4781-8a75-90c59f86aabc@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Trace: blaine.gmane.org 1483866599 15908 195.159.176.226 (8 Jan 2017 09:09:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2017 09:09:59 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBZEDZDBQKGQEHPIONTA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jan 08 10:09:55 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yw0-f191.google.com ([209.85.161.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQ9U9-0003EX-2v for gtp-pandoc-discuss@m.gmane.org; Sun, 08 Jan 2017 10:09:53 +0100 Original-Received: by mail-yw0-f191.google.com with SMTP id r204sf122943772ywb.1 for ; Sun, 08 Jan 2017 01:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=etuFo/LzTZD3v79R7N86o0mfMr/S1/6faATWYa4TMY0=; b=C11aSPfls/Qpx4au9UPf2mj9RO7wveFyeSEMMNMmr2a3YDEnyUZsIC7EGvn0xtRxrF H2pWJHT3slULTxWoxKLZztHpKpAuXLF23IItWrcoFO1OeXW1bf5UNzp8oftVtfkwUp3K IqD1AbBLbt2NwpHnW8yMLkML3rqScx3Dva3qPTgB/mgfmSiEHbhXMNLI8mKwPDWgA39y jTMJoONK5Q2bymk935k9UWUv5I5IsDyIG7wQfwRrdyZTgcq2NCRZXFdTcaUBMySMOhb9 HJAEAzOiHuKqo4DdRGYsj6u7wQpPLSWxA3MOC3pt/jO3h2gcSmXd9+Gzy4vpHP286uxz bpEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=etuFo/LzTZD3v79R7N86o0mfMr/S1/6faATWYa4TMY0=; b=b78/naN5lddajhtS/vhbcR/ewLBSegxPHfdU022EheqTFDfu/UFMIi4hlgO904y9f+ Lfaa1e7uc0abuV0dIJ68KFpGiOdbeGQZ0GFouhmCXGvrNzTnWhOEZPoNxEDvBK15RZHK Bb87C6ytQSl46pDvTdhI+sbeHGpH6sItVigFMWlzvGxqC7pIlQ059otedkKFNNdpHZY1 +ogYNYbXwjEXaNOBritccxlLYC1MIT7p3uQBqWH00ys8aiI4vId+UCDBANuuC1dC+8y0 Slv+mbxx4iEn/uZCMPVtJ1lGJwTftJu7CEZlBF58TTcnrMkIklwtJ35qE/0ozxWmeS7D Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIkVDXIatFbkMbKItvJcNPsSVMfv2dL2xeDIOCpDI0o7iPn7076qdev8U3ViRP+36Gdq8g== X-Received: by 10.36.50.129 with SMTP id j123mr288615ita.7.1483866597364; Sun, 08 Jan 2017 01:09:57 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.192.130 with SMTP id u124ls1746131itf.1.canary-gmail; Sun, 08 Jan 2017 01:09:56 -0800 (PST) X-Received: by 10.99.127.87 with SMTP id p23mr47300119pgn.107.1483866596765; Sun, 08 Jan 2017 01:09:56 -0800 (PST) Original-Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com. [2607:f8b0:400e:c00::231]) by gmr-mx.google.com with ESMTPS id r1si20387121pfg.4.2017.01.08.01.09.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jan 2017 01:09:56 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::231 as permitted sender) client-ip=2607:f8b0:400e:c00::231; Original-Received: by mail-pf0-x231.google.com with SMTP id f144so13704251pfa.2 for ; Sun, 08 Jan 2017 01:09:56 -0800 (PST) X-Received: by 10.98.65.72 with SMTP id o69mr79179791pfa.128.1483866596340; Sun, 08 Jan 2017 01:09:56 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id m3sm115033588pgn.40.2017.01.08.01.09.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jan 2017 01:09:55 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 189A8A0C5; Sun, 8 Jan 2017 04:09:45 -0500 (EST) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::231 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:16635 Archived-At: +++ BP Jonsson [Jan 07 17 23:53 ]: > That said if a separate filter option option is implemented it would > probably be wiser to implement it analogously to the -M option, > something like `--filter-option myfilter:option[=value]` and pass those I like the idea of specifying the filter name explicitly. > options to the filter as a second 'line' of JSON, thereby not breaking > backwards compatibility. Changing the JSON will affect backwards compatibility. Better just to add these as arguments to the filter (after the initial 'format' argument). But I'm still not *entirely* convinced that this is needed.