From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32208 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Lua: pandoc.read() with current reader options Date: Sun, 19 Feb 2023 14:11:27 +0100 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000034b14805f50d49f6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10902"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBCGAZCPQMGQEPARPKEY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Feb 19 14:11:40 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f189.google.com ([209.85.219.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pTjTg-0002fj-1M for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 19 Feb 2023 14:11:40 +0100 Original-Received: by mail-yb1-f189.google.com with SMTP id x13-20020a25e00d000000b0090f2c84a6a4sf183702ybg.13 for ; Sun, 19 Feb 2023 05:11:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676812299; cv=pass; d=google.com; s=arc-20160816; b=y67NJ8mclwim2NU5LeYlKMEt2Ej0VzBu6ncFWd4RvbaWcGBebbPb4GfCEFAnVyAf/A N6T1+sUPF7DRucbiJPcU1dq3bcqNyhlNoL/1FcaO9G5Os/G+CEOEwbHre7vJdhXF3vAz NHQZ2O9AHojpEWA6XoyZq9hnDJdld5H5dm43ZB5npjHLjqPjN6W1+1jQbJZ59qB7hYKW EBHVkjzWq7tbFFZkBESgUIul7F6Bhu7XTcqZyFbhDqVK/ORqBxDlTPik0oIkWVMIlsZb rOYfXOip+mwDqCcsgHL5TrrREsQU4GW7lEl+eK9YvX6CebNU5NQ+QrdwaGeoiarnhpGd lnmQ== 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:mime-version:sender:dkim-signature:dkim-signature; bh=bqtK9FsynsbxCREi0fMJZQ7AWPUBiE2S2dZzcR80+6w=; b=tM+sMQgA70kxXnw++lj/gcRnGwTwiE7y0Ji+MZ9LTM1Q8xLh+FtNRTZKptfC5s3NH6 c8OHtYpsGPzqngMyQXmr2rRKQFQ7R8FGxDm5yR8Pk9hb1tGZAcNupvXFifgflKB+fHjI moUPLpthrgoxmP8dp7cjB9ERwI7mnQ1aq8boVdgHEnKZn9wxdbsMBYQgbnbI6A4W2NNX lDQkkmYQ0Moc2v7IyKox8214rvwk9IYzBIqWltbkjq/kMz8qzdnW73ehmOzE+vyG1mUo Vr2rwxdwgJ9OHnfPQvuk+FmY9M31NzrcpGEzegfBVURsVn4RnYRzdveto5dZtpdJXXUX yRoQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bMNbhbeW; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112a 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:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=bqtK9FsynsbxCREi0fMJZQ7AWPUBiE2S2dZzcR80+6w=; b=ByelQqgJfb4zNMIbJ9OdSG+JSZ5XMA5gZHoOXMwvtEKa5o+QfKTeD7VchmC4BB7Bdp CVxlSMJmRBm2XPu/fVzLj5wWu/xYsmGArrojIkWM3gYeFpv9BO3BrbsHiibRYfbRX77H WS2DueSIbkP7XVUDZOUMZDIGiXJcABs06YvWSrySLqHkA8D7uwGz3rjkKsGRmdev28hb pPylWu59urCdcBGwl5Zr/gf/8tXf9ukT4NbJ6ZS7Pzt/8KyPFu1GQLwrBcPvGlW3ozVp +6FahxpPdYM18hq2PMtkWMjJUFc8rc6tXr+0BC7SfjeCn2jEOcFuyDzsmfOkPNEDcPO2 Cl+w== 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:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bqtK9FsynsbxCREi0fMJZQ7AWPUBiE2S2dZzcR80+6w=; b=D9MxmzPQiaWyxM4S7Cyg+7vkfXZDgRl8HXAz5u7l5WLZmlgQ+P4ni7Z2ujdpBTWz6/ TO60W/v1BaGfb/uOQtgGjPsMKIjsZSUSWpjPG+6hYhvFrd4UbfX2oBahEzQocPo+AVOM NftAD+f46Xvy4Cyrm59Os+QoXcoqNrTMyrbANpaQAmODQZJWYxLeo8cArWH02viYVO0H sO100ZcQp349gY30DsYVtCQKDpQ964uDE3UC9xw3th6JcOL8vz40p7XMd3EjVG6vi/7N t5e2gHxnMEBE86lR2DnYVEJRahKQWN2Da3jSH0n70Rwuz+fVUkNbnJDoEcF6ROLIGRO1 pSOg== 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:mime-version:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to; bh=bqtK9FsynsbxCREi0fMJZQ7AWPUBiE2S2dZzcR80+6w=; b=cnsBBbKB4GMhamb8qxkiIX/nb94HpYethQOgRC0NVOJcGTP6qm21op2e9x6JOtkTRa Nj3BW9589wv9Tj4xX2IUzlXjETroAVyUgDrvGdR6MtUVr9OysPATVxH5YPXlKOlJe9bv l7pU66oA84/44twh9MVeOgFjjTOK8ysWDCkDy8JuBnvmcxPrt1Ek5PxbtuUKUSnOfCUy DaLU3MrRn6fkbTiqltUmhmxck1QV/e8Qk9N0PzabiRTSHM6sqkqjoLa7LV1dFs7XlbsW eqHGXWmR5cwAPJt8dTFZiVTMoVbWyZ2tvJwNEkAFn4Mq4jWgWCsmUVZlLCgVzRt0fzhM F Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKX1ThDEPAWXUY3GLbm84GE+MfFn5DzobYcYmPOWvYoHxJuv0g/X HwVRQ7DM6ATscZOZy3DD8gU= X-Google-Smtp-Source: AK7set/5kUWiP0JaDdeT9j7OOOQn1FqwBhI7a6uY4iws4nSE3metaPsYcMHX1fOhldQKGQZ5v8U6Bw== X-Received: by 2002:a81:ac0c:0:b0:52a:9f66:80c6 with SMTP id k12-20020a81ac0c000000b0052a9f6680c6mr36958ywh.9.1676812299042; Sun, 19 Feb 2023 05:11:39 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:54c:0:b0:506:4723:b3e4 with SMTP id 73-20020a81054c000000b005064723b3e4ls331552ywf.2.-pod-prod-gmail; Sun, 19 Feb 2023 05:11:35 -0800 (PST) X-Received: by 2002:a05:690c:c18:b0:536:427e:1811 with SMTP id cl24-20020a05690c0c1800b00536427e1811mr105543ywb.13.1676812295586; Sun, 19 Feb 2023 05:11:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676812295; cv=none; d=google.com; s=arc-20160816; b=yeeZRMKv9XXdICt+R/prtMgsWms0m0jyzNL1HRfsZissRdNWUme7qCJzRMSzV26Ukx wC8ygMiMmjXdpZe8YKIDGrnQAmvGybmPr12DM9THLvZgUFv8Xgndb4iJgyfmeaE8WCN8 WYD6mis+wnNp6s7SU59tEvib/YqnFD4mhJE/utUK0dOxRxQS68Frj3RhcGbQNAJv//Up SY4qBuMH9eMySLOWo7tUFEqRb5e/APwOZ4rKOwqBXIOcycRdXk0oDSAjzusvS7ul6+zR cr/BplI1AiUHv7SC56D3krCYUA9ETkh/Ac7Ptkb0+yATLMaNTI/W/rYjRgt71nWDCYCW w6hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=qmNkfvRI7PeFfQwp5qDsobp4Z1aIqc0XFf2JUTBbZ+s=; b=tYGLuugOgSCcROtnuJBvNopoOPNFFB6RwbvSeVNGMvGhUjJJ73Pkv9CTXQOfIeesHs 0egO74qCnnU3sqH1tsgb3LFbQnMGjeV5nZ19vNYggXNHsE43Rvgd9rxrRtxWrYeVcJbc k3mVbm9TwieQ2MmykEi+kfj64CpiqcKXpqh8AHYOoBsxRBki7QF0qOPFC0PufjBFsD5G nTQl7Mgg9r+Oq3gJZL+/702hbyFxuj69VXS9UCgX8RH/dZ+ou56z6o/HlCaiFnhTioPv bst/ERBbXMAl3vX9kaP08U/o4Elw0Xx/Ar2DArhIW3fuZfwssboPyh0xIwHmPVqLd7T1 fTlw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bMNbhbeW; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112a 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-x112a.google.com (mail-yw1-x112a.google.com. [2607:f8b0:4864:20::112a]) by gmr-mx.google.com with ESMTPS id 126-20020a810484000000b0053421bb7e79si129322ywe.1.2023.02.19.05.11.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Feb 2023 05:11:35 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112a as permitted sender) client-ip=2607:f8b0:4864:20::112a; Original-Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5369aabc0baso6936737b3.9 for ; Sun, 19 Feb 2023 05:11:35 -0800 (PST) X-Received: by 2002:a0d:d346:0:b0:52f:393f:449f with SMTP id v67-20020a0dd346000000b0052f393f449fmr1508999ywd.19.1676812295121; Sun, 19 Feb 2023 05:11:35 -0800 (PST) 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=bMNbhbeW; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112a 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:32208 Archived-At: --00000000000034b14805f50d49f6 Content-Type: text/plain; charset="UTF-8" This one is for Albert I guess. Is it now possible to invoke `pandoc.read()` inside a filter and apply the reader options from the current invocation of `pandoc`? If so how? The use case is that I have a defaults file which sets certain options and then a filter which conditionally replaces code blocks containing markdown with the result of reading that markdown and I would like to use the same options as for the surrounding text. -- 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/CADAJKhAcGpKWDNFU85hauzRLF%2BY-n2T-PyAnE6L8YSvJbJYqyA%40mail.gmail.com. --00000000000034b14805f50d49f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This one is for Albert I guess.

Is it now possible to invoke `pandoc.read()` insi= de a filter and apply the reader options from the current invocation of `pa= ndoc`? If so how?

The use case= is that I have a defaults file which sets certain options and then a filte= r which conditionally replaces code blocks containing markdown with the res= ult of reading that markdown and I would like to use the same options as fo= r the surrounding text.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhAcGpKWDNFU85hauzRLF%2BY-n2T-PyAn= E6L8YSvJbJYqyA%40mail.gmail.com.
--00000000000034b14805f50d49f6--