From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31513 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Lua filters: Extensions with pandoc.read? Date: Thu, 6 Oct 2022 13:11:45 +0200 Message-ID: References: <87czbrfrzr.fsf@zeitkraut.de> <87v8oz3ohm.fsf@zeitkraut.de> <87r0zn3dff.fsf@zeitkraut.de> <5AC38771-6A87-47C2-80C7-5C7B389EDD1B@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dcaa1c05ea5bc2f3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29749"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB7HP7KMQMGQE6KY3TEY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 06 13:12:06 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f192.google.com ([209.85.166.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ogOnJ-0007Mp-PM for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 06 Oct 2022 13:12:01 +0200 Original-Received: by mail-il1-f192.google.com with SMTP id f15-20020a056e020b4f00b002fa34db70f0sf1289120ilu.2 for ; Thu, 06 Oct 2022 04:12:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665054720; cv=pass; d=google.com; s=arc-20160816; b=SsYcYtKYJPbegrJgTSPsr8hban4OC4Ro7+eB8kPPuYV6xD9Lh9jpJV8q/7TMI6WmzA UEB+H9KgdOCP5Dwzgj0u6neKzMauYvN4Bke1P7rTpPbhP1b8ima9rOacZQ2F3QSVV1us 9t8MzbW7rSwilg5qwCPKXlIyjJ94115Ic0vf/vOXCoRpmdqHXwbyJEsukg/nGC1SfKR4 TfcjU+MMOwLxxUxjtu0bR1R+MzErjuV4cBmSWS6Xez+VHdhoW3uvRMekDKE5u224/wGB +OT9psyZCO+xiKz2uEZarfH9JemXnyQMgseD6BoRg55pxIgA/Y5LDYVtp90/ae+mAyh8 RcTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=9fY45/QXJCXIjMTZZCvPo1uuCBbq6CDVYqrVim2cjYQ=; b=uYXpCKF8YM+OTRozLT7gA3hfrGDWYEWVzA4NZRmnqc2ljd3//PGSHS9SX8Sukieh17 r89LrOZVGPZX1eR6TTZn71KGoQoamb9V3GpyIkASpbtUP3r4qzi7BD/R6//CrpR0hbfh B5skPb+iR9vLgvhe6KeQfqBkOf4lZnGlHWDevqFgZxNrs3ko3Sd8QeHTufS6lV2RAH7E d23NG/HeQYtBEETIkNAaI+iYDZdDlwyJ4jVEx6DJGKU1SyUQmcQKvBXkiSseOMWADp5D EIJ0avbKl/SgABIN98IugWCXzDvvRPcUiX45qAyUndkhiHHBcPd6Z4No9yLBRf57K5G7 yHpA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="gHc5u2/+"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1133 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=9fY45/QXJCXIjMTZZCvPo1uuCBbq6CDVYqrVim2cjYQ=; b=qoogxViwluvwVRdq6LF+ffWQDAEXHMhECsgIdL0KoSecSKEypoJr7lMx0hvg1z7pBw 9m4aY4Zp385IX/xWehpOzKurmLuUnwqiA+F9/FPUS9x4m9pDe/FNoecmFaZx1VPCvl3s dheulw3qpBw/ESuqHVNu0GIFUT0Dgppr33BO0au+axxcAwIqNtRGPp/TGjWwuT/2wmup Pi3YEfrZUuKrUj28wlGIC+4qRqYq5yHjQd9LT17nlsmfZaP9virQkcaThQw06OglHzy3 8PIR9Q9KwwcS17n9TZZ3cdhQ9XngAGrkChJ6WA1r+YXEGiIL/mLNk30U/nM4mya10mSn Hd3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=9fY45/QXJCXIjMTZZCvPo1uuCBbq6CDVYqrVim2cjYQ=; b=hrE5/EH6CPRsvN7bCQYDMzTpZbRHlDJ3TxhTfoTcKQUYzgjlFWW6i9xGx+T83L3HLx 3vWwt3Jgu5xCDoHI3poUmXbWtBuj7ui6Wjnw5Whx95/Uh93idKPwFPFQanVY1DM8aaIl rQIwy+D8HK6kPsi0EXoiZXnP0tfYJKxcfCs8GlQdkk7HGfa6n165kPShd9877iZQb5UJ JY6uHrf6wzEsKRR3YGbtTC7UwM0btmmbklY97Glul1CuJtlFOnu/asdajFYDwNhyxC38 CpV4hyDlxZuzq1JUEdmjBCBKgore9hcHMedaSXCUqXduoE2X33QphSJpL2McuNjWva+H H+2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=9fY45/QXJCXIjMTZZCvPo1uuCBbq6CDVYqrVim2cjYQ=; b=OO2TYgXVtcu05wYl9Sk1FaZBiZyYmD2liBB8YeGazxBuTqaKCZZvwXiWrUlhm0q6A4 3ABivFPsuQ1Q2jMOuQ+zXP+qEaxPWaRVtF0IX8Nsd8IDWrpn5YvT66lABmyFzVm1TSit onOOizILj1Hr4SCaeoGKVtKG7UiSr5mJtQKKjM0gpNtwyZtB3hSf7Rk5dloc5xbDCz76 uiqtwaMCKTiJAH77WEvoPhyeyeNX0STj9KqzaLKIo7b1rn6l7O5OVFOaYJBD8NdmX/j8 XHkp15msTD8BELsbJSr5WLbE9uEtsLR7WC+l9q1+e/AdG8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2Opnyyl/JFMk8SmrokilWg1gats71THmbXSZvQdo97kgBPgs6o gp6wbX2pu2js2jfP5Owjto0= X-Google-Smtp-Source: AMsMyM4FpHKhzt4piEoUr7zqBPAYc1EqLTDZBw5PRHdpLvm2mHg3Hw2IHnYtm+B0sXCgjZa9+T8QCw== X-Received: by 2002:a05:6602:3c7:b0:6a4:334d:3344 with SMTP id g7-20020a05660203c700b006a4334d3344mr1892851iov.21.1665054720506; Thu, 06 Oct 2022 04:12:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a02:6208:0:b0:358:3055:3faa with SMTP id d8-20020a026208000000b0035830553faals330710jac.6.-pod-prod-gmail; Thu, 06 Oct 2022 04:11:56 -0700 (PDT) X-Received: by 2002:a05:6638:3181:b0:35b:a719:6675 with SMTP id z1-20020a056638318100b0035ba7196675mr2166710jak.203.1665054716576; Thu, 06 Oct 2022 04:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665054716; cv=none; d=google.com; s=arc-20160816; b=T4In9Zd+SSwzQJHBI9LbgTve9Jx8VcI+OgYL7lWLCIa8WeKinTZByaVNx07ruigmaC KlZ1AkwEpZBF+M3U4HtPI2Z0UkjDO57EBwinwDQna+StPGu0Al9wvRkQMc/mEqPYP02n Ml9hjX+qLPtWJQdeLnf2q+lg2a6Q6B4MXmQ+DgXoAVhBrEnxfm2tJvAuFBnkYLQzrtcW 3xx4BKmDZw4R23OM+n54jsNpAKiFe67xUX9srcJlUtFUFds6Mgzgy6swxPQI8WG1JjC/ JWTqqtsxRE3BUnS2mKdIS3mpcybStCEYlBhFe9P5CjwVSjpm2Xe6q7LmAz/ZaTOLpY1y vEcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6YO0u7SbZbT1BkQr9KiLcFr3ogpcyfDT5NJCFzPYsz4=; b=tKQoscfNsVZKFxNlwxcQWfiFF8lV3GPbgQsaCQp8ZdgUJqX9Kg4bacnjCrDw3UFxA0 CflJ+/FGnpAmvKM8gPabZ83qpWJVsZTCoIBuPWzQRls5lUWsSfut5u8Mvtg+ULnxQTTt +lFnSd5UlbjydjrPlziYLk1TD63IYAMmEe4lZYAU3RfPs3ntH8G2ymrl5Jj1DkHxIRXG HuhflFfhbg0TPuHmVsoO44bOO8N0v18mh+2GbMc6rSCv/FT5UuNDgeX3TeEUcdALEINF kGIeDI6tV6OMihYR6FQ8ySDU+8JJRKe6wjjLAatYm63lPbYYfQ68ynoRNhSB5SiGNh8L 0iaA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="gHc5u2/+"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1133 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com. [2607:f8b0:4864:20::1133]) by gmr-mx.google.com with ESMTPS id p21-20020a02b395000000b0034a5a969388si954539jan.4.2022.10.06.04.11.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 04:11:56 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1133 as permitted sender) client-ip=2607:f8b0:4864:20::1133; Original-Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-358bf076f1fso14403407b3.9 for ; Thu, 06 Oct 2022 04:11:56 -0700 (PDT) X-Received: by 2002:a81:a24e:0:b0:358:934b:980c with SMTP id z14-20020a81a24e000000b00358934b980cmr3932752ywg.383.1665054715716; Thu, 06 Oct 2022 04:11:55 -0700 (PDT) In-Reply-To: <5AC38771-6A87-47C2-80C7-5C7B389EDD1B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="gHc5u2/+"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1133 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.io gmane.text.pandoc:31513 Archived-At: --000000000000dcaa1c05ea5bc2f3 Content-Type: text/plain; charset="UTF-8" Den tis 4 okt. 2022 19:26John MacFarlane skrev: > > > > On Oct 4, 2022, at 6:31 AM, Albert Krewinkel > wrote: > > > > Mmmh, good point. My initial idea was to use the format's default > > extension when no `extensions` field is given. But that's confusing, > > because now omitting the `extensions` field can have multiple meanings > > ("fall back to reader options" or "use default extensions"), depending > > on which other fields are set. Not a good interface. > > > Not sure about this, but what about? > > - if no `extensions` field is present, then default extensions for that > format are used, as possibly modified by `+` or `-` in the format specifier > Wouldn't it be better if `+`/`-` in the `format` field be an error condition if the format argument is a table? Least confusing IMO. - if `extensions` is present, then those extensions will be used, instead > of the defaults; if you want no extensions, just use `ejxtensions = {}` > - if `extensions` is present *and* modifiers to format, then start with > `extensions` and apply the modifiers > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/5AC38771-6A87-47C2-80C7-5C7B389EDD1B%40gmail.com > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhCan6ec3ruV5r08ynTFPVLUtOpc%3Dh%2BJt7-geYNUcJb6QA%40mail.gmail.com. --000000000000dcaa1c05ea5bc2f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Den tis 4 okt. 2022 19:26John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:


> On Oct 4, 2022, at 6:31 AM, Albert Krewinkel <albert+pand= oc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> wrote:
>
> Mmmh, good point. My initial idea was to use the format's default<= br> > extension when no `extensions` field is given. But that's confusin= g,
> because now omitting the `extensions` field can have multiple meanings=
> ("fall back to reader options" or "use default extensio= ns"), depending
> on which other fields are set. Not a good interface.


Not sure about this, but what about?

- if no `extensions` field is present, then default extensions for that for= mat are used, as possibly modified by `+` or `-` in the format specifier

Wou= ldn't it be better if `+`/`-` in the `format` field be an error conditi= on if the format argument is a table? Least confusing IMO.


- if `extensions` is present, then those extensions will be used, instead o= f the defaults; if you want no extensions, just use `ejxtensions =3D {}` - if `extensions` is present *and* modifiers to format, then start with `ex= tensions` and apply the modifiers

--
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 pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/= d/msgid/pandoc-discuss/5AC38771-6A87-47C2-80C7-5C7B389EDD1B%40gmail.com= .

--
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 view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhCan6ec3ruV5r08ynTFPVLUtOpc%3Dh= %2BJt7-geYNUcJb6QA%40mail.gmail.com.
--000000000000dcaa1c05ea5bc2f3--