From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29995 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jacco Steur Newsgroups: gmane.text.pandoc Subject: Re: Using lua filter include-files on pandoc 2.5 does not work Date: Mon, 17 Jan 2022 21:57:18 +0100 Message-ID: References: <091e1142-2cf5-40f0-a0f4-1c6a2bd0af4bn@googlegroups.com> <8735lmefdv.fsf@zeitkraut.de> <9aaa4fcd-5dad-4278-bd37-0a1e3e4073b1n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000090ee8d05d5cd667c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32449"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDUYXFMS4ECBBOVQS6HQMGQEHB5HN6Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jan 17 21:57:33 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f190.google.com ([209.85.222.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n9Z4G-0008Gt-RS for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 17 Jan 2022 21:57:32 +0100 Original-Received: by mail-qk1-f190.google.com with SMTP id b189-20020a3780c6000000b0047b06f34f4csf4621946qkd.17 for ; Mon, 17 Jan 2022 12:57:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642453051; cv=pass; d=google.com; s=arc-20160816; b=wlGK13D6ZqqzhzWz1bVdST6G2mAR0jiNeGK0wboD6N6S0CJgriQBwniCn+lfo+smze W4dsxSFrhB8StKKGvQfs7rmTwnnIFaGtW+DMHPNSRRGj/RCNddMfLngtEB4o/iKFutO4 eqrnaqYeiLacIF+/HN0NI6SOPFptmzoOJCftZIC0VNvcm+MpLrzmZlTADT5MBrU9b7s0 +AlgpJn7PYvgkhMSLRQpW0s10gl1qew6S5n1VN/ndV/esoLd0+cW2kgYr3UJuKtZ7Hf1 xROEUWRCZvzwIbyEOL3XJ/2oWes4IKmBGhcEMsHYY73kYbdkK3jJmcp11oeoSTaUXCfa vREg== 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=ljUCbooVq4cIL4188hhCAaCEmipi/47NEao9BRhwHFk=; b=tlE1I4lMl1i6BRhZjHWMwy+15itjl0tSTr+I2+5/aHjZFm9WoVy14ehjnNm6/GKDi7 ib8GvBPrCmuHO0arttKZX7ch+ViT6RwsNIhsNNApqABpYUJ+ldzpqUhP3TwRvI0dkwMe 3DcTaS0+9a9o65Dvgc4Fkrkc3Dpt1JKiAhGltOc3gUQfjhplijiGH+1JJlIspodD4h5D p5NeJMBZSNOu5lFYwzW3HkZ/FtyoG2ohKrVadwl5vBill1wp9HDUibfC1az8TsEwRCJk vC7CBpd4ykhhoSKIUXZo62Twwy2TadlLUsqlwUQuMubEOVYU+TSWZR1XCfEsNokJOmWM j+WQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JRtgO0Sl; spf=pass (google.com: domain of jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=jacco.steur-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=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ljUCbooVq4cIL4188hhCAaCEmipi/47NEao9BRhwHFk=; b=QWpdvSQqSrF6iX95+0akCILB234GPfIWQFJTqwAql1p0kylMIcOoXExEj+SGK63yOJ xCZvUOBQjoQ6KyDAbnEtjkrAjEiVfI7I8UQ/m6ihWEp4hXAev09/mw/3joY6BJki3HZP nJNtiN8ESky6i+zSIA9A09zFGeccv/nCv3GqpJRYre644Xka7ZpuBcl6dFTCh0K43T+v 1X+uq0goOk40DypU437cDt5JLf8JjEwIiA4q6u0qf7o17b37pH6Yi+1NFXTwIe1ULa6j eQ9MI3xJ7h6eaMMa6DdFxjVX80meeZt4VWma3JpVBEnSZMoqcNoRToBRDW0JlAUTfHrp uGSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ljUCbooVq4cIL4188hhCAaCEmipi/47NEao9BRhwHFk=; b=LaTA7K7bGkkk7jyTXpnOPUS2B4mrvKY4mxV0SyvJow1QIsjVEsR9sNzJGQAc4iN1J0 I2yJjRSTDcalh2jfFuL9vHM+X3Z0IdqToIaQ6yWL1Fm6nxqhjwj4BUhL46zk6BZNbG27 YSp1Dw/SuhqVvLLe0i68QykWB5d5jPG8rL8wwAlhITCRXLS2Uv73Oso4Z7I0/+2b69cP +vhSmOYeXjFKbWsaj+kNQX58+nUo4g2lR86RsVThDZF1eTuuTUYeUv2dYysM/u8V63Jn JRdLzrmtcve/pH8y5uGWXNQi0xZ0gIC+cu72SaYX3DkAkOgBvL1rtPxqXfhPV9Y1b1Jr aSdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=ljUCbooVq4cIL4188hhCAaCEmipi/47NEao9BRhwHFk=; b=tnMBD4aR32f/VRGTLDDKq5RS9zSwfRIK7wW1VzDg+va/p6Yn7SC0YcjVZdvVFU/lg3 DWQ1i7eU2V1LRsLa0mtpumy0E8atISlgzuNqGwb752EbZljHJjWCOzqyw+nQ1ULdYMls t416XMMN3Hk9+0vuGWRCk0S4vWUYlr3jhSdyyRKlDT3vmk9LJHM4cJQ9C/q24V/a/2yW TtWMcNGbF1f2VvdXgrlDOP5+WxCuV9XzgSXUWKOFzQaH9eXctp1iF839W891glN1Q2bf GgmTtmhT4NK9NJMt3O8ogX7kLB2IbObrhEDgPUOH372H5LKaVKffX309h0AdBD7OjkUz aZ3w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5330wciDhnTfsrt9azYQnHT+opSublQycDHajIxRGC+OME27mNCe 2VuhNdA9LjR2Zz2jRjqop8g= X-Google-Smtp-Source: ABdhPJxHXhsuKBAqo0tOhd75dnAh/YLyWOduTn9dLBr1cgr9oIEr8PP0FlYDsKWErDQbEofsCR55UQ== X-Received: by 2002:a05:620a:16cc:: with SMTP id a12mr14146019qkn.389.1642453051589; Mon, 17 Jan 2022 12:57:31 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6214:9aa:: with SMTP id du10ls5242939qvb.1.gmail; Mon, 17 Jan 2022 12:57:30 -0800 (PST) X-Received: by 2002:a05:6214:f05:: with SMTP id gw5mr20105483qvb.24.1642453050028; Mon, 17 Jan 2022 12:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642453050; cv=none; d=google.com; s=arc-20160816; b=DGgkXODuNON+lyn2lwAZCiOlYphsKULNZHCaznvwgM3uuFmqO6tRBJlLZHfnxrMgNG Sa8iA/VcS3zo5L2KdtLQ7F85kgovwndVR3/N2Cik0GJR4raMMIZcgVT5KsLH3DYN/Xlr 4HtukvDO457nW573A1BA2Lgte2EYWbN/B1zLCIylfEPGuAjpSJfE5xiRKgh7+OW4AFHF n5mlAUmp4Lg0LmfztDvblaenCZiNE00dfzLw0naJnyRgHKwec9ysfH4pK1kioxGfgR+X VBa4JwcdBMyrZUXGKzHuUYgLvmuj1Cmb9oJUq82Ke+7sVsdqkD1lDcUrKb6+o7NaojpS Pe/Q== 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=4CabQNWInT4pFTH+oS7lSkhBAnml6i/aiyn8OVzeM6c=; b=Qx7Pn9FDxBhqvudD6BIN9yV3zLLUzD7usNjwwdP8UnW3fHcjBMOBNCx4T2zntcQy3/ 2ywkLSiKF1waXohWBK0lQ9pq8EVANjC0l4i7y6vepOicjhqju/niIwcQWHuBKEUQntzl IvvdPoAXeaq/l/fW0LyHT/5wIZQF59gmmWEPEYx7aHnT7SZNFwmroOriHamJopSzJTnX DWIAmblx/IgS+Foi/9r926gTA0/+tCF64IjfqC/uAYIRTEEhgBCdwu/as5k4mvFsrJRm 22/K+T2HhgL6XjLIkfypLaRci40jrjDTzxL3FNd4H/uAdxrSyHYRgPpLGj5jqD6Q07Es hBEw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JRtgO0Sl; spf=pass (google.com: domain of jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com. [2607:f8b0:4864:20::d31]) by gmr-mx.google.com with ESMTPS id 26si825864qtu.0.2022.01.17.12.57.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jan 2022 12:57:30 -0800 (PST) Received-SPF: pass (google.com: domain of jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d31 as permitted sender) client-ip=2607:f8b0:4864:20::d31; Original-Received: by mail-io1-xd31.google.com with SMTP id f24so17155951ioc.0 for ; Mon, 17 Jan 2022 12:57:29 -0800 (PST) X-Received: by 2002:a02:ba85:: with SMTP id g5mr10050397jao.50.1642453049338; Mon, 17 Jan 2022 12:57:29 -0800 (PST) In-Reply-To: X-Original-Sender: jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JRtgO0Sl; spf=pass (google.com: domain of jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=jacco.steur-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:29995 Archived-At: --00000000000090ee8d05d5cd667c Content-Type: text/plain; charset="UTF-8" Hi Kurt, I have the filter exammmple working as wel using the deb package. I also need it on macos so thanks for that tip. I also want to get it working with zerobrane debugger. I think that really makes sense when writing a custom fillter. Do you have experience with zerobrane or any other pandoc lua filter debugger? Jacco. On Mon, 17 Jan 2022 at 18:55, T. Kurt Bond wrote: > Hi, Jacco. > > I have found that using the homebrew package manager -- https://brew.sh/ > -- on Linux and macOS makes having an up-to-date version of pandoc very > easy, and I just tried the include-files.lua filter with your command line > > pandoc --lua-filter=include-files.lua sample.md --output result.html > > > using the homebrew installed pandoc (version 2.17.0.1) on Fedora 34 and it > worked fine there. I use homebrew on an Ubuntu box at work, and although > I've not tried this specific example on that machine, the other things use > pandoc for work fine there. > > -- > T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io > > -- > 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/CAN1EhV9rpeD57BXHOhN8%3D3DBEWfMYmD4wsdkGg%2BQ5L4Bnr7-qw%40mail.gmail.com > > . > -- Jacco Steur -- 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/CADjKMHroW1%3Dm_XaNT%2BB7Mn8PU8eUc2nEp4AVA6B1fVwMr4W2Hw%40mail.gmail.com. --00000000000090ee8d05d5cd667c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Kurt,

I have the filter exammmple=C2= =A0working as wel=C2=A0using the deb package. I also need it on macos so th= anks for that tip.
I also want to get it working with zerobrane d= ebugger. I think that really makes sense when writing a custom fillter.

Do you have experience with zerobrane or any other pa= ndoc lua filter debugger?

Jacco.

On Mon, 17 J= an 2022 at 18:55, T. Kurt Bond <t= kurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,=C2=A0 Jacco.
<= div dir=3D"ltr">
=C2=A0I have found that using th= e homebrew package manager=C2=A0=C2=A0--=C2=A0https://brew.sh/ -- on Linux and macOS makes having a= n up-to-date version of pandoc very easy, and I just tried the include-file= s.lua filter with your command line=C2=A0

<= blockquote style=3D"margin:0px 0px 0px 40px;border:none;padding:0px">
<= span style=3D"white-space:pre-wrap">pandoc --lua-f= ilter=3Dinclude-files.lua sample.md --output result.html

using the homebre= w installed pandoc (version 2.17.0.1) on Fedora 34 and it worked fine there= .=C2=A0 I use homebrew on an Ubuntu box at work, and although I've not = tried this specific example on that machine, the other things use pandoc fo= r work fine there.

--

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV9rpeD57= BXHOhN8%3D3DBEWfMYmD4wsdkGg%2BQ5L4Bnr7-qw%40mail.gmail.com.


--
Jacco Steur

--
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/CADjKMHroW1%3Dm_XaNT%2BB7Mn8PU8eUc2nE= p4AVA6B1fVwMr4W2Hw%40mail.gmail.com.
--00000000000090ee8d05d5cd667c--