From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30953 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Hayes Newsgroups: gmane.text.pandoc Subject: Re: Using lua filter include-files on pandoc 2.5 does not work Date: Tue, 12 Jul 2022 16:45:51 -0700 (PDT) Message-ID: <9e1098df-5871-4650-8171-c5b1889171d7n@googlegroups.com> 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/mixed; boundary="----=_Part_64_919910120.1657669551148" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17134"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZ5BSFCTECRBMEPXCLAMGQEFSGD2EY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 13 01:45:56 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f191.google.com ([209.85.128.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oBPZk-0004Gf-3A for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 13 Jul 2022 01:45:56 +0200 Original-Received: by mail-yw1-f191.google.com with SMTP id 00721157ae682-31c8a5d51adsf81089717b3.14 for ; Tue, 12 Jul 2022 16:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Kptk1G8n8W++GD4hQPDD3cJvilOZ3ipquFpZBxrhus0=; b=t6Knc83RhuMevdKxp5jKS0M/oA68htdL+1kKZpt46J1+8R2r9dTGhZ8Yg4LOsuHeUj 15AgucRnzQyOZjNKRfQY6JnZUYdG3eFjft8PTcHWx1Rd2biCLW2MA3sCDAFyW+apG8MQ o4T5CuESa6ZtNx0f7QMnWaJPXlB9EyZRr15b2OR0eDZRswr+FCA+vCDxrwssrqwVCzoF LEH/SFHGvu01eqwwXrAWu+IeYYPi5oOiSCmU3qzNNU8GE7WPccN+St2Lrh7dPsct4dMp mX65vRDcY3mfvswV8stGL2SXSzxnhORumbjBDqXlfiBjOYyCcNqDhh6RYD7r5MXwq5oV fbWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Kptk1G8n8W++GD4hQPDD3cJvilOZ3ipquFpZBxrhus0=; b=VdbaGB1boVXcz4PN1iMjozYVMAm2fECczN4QzBiqjFkkbrEs1ZwcSvqz5RwS1QRznO O7bhwQDAcwGJuqbFl8LdPxmgszehODXmY0xgiqwgmx+TD1DPYtf/w0Tuv6RixIVAO/1L 00d8UNWuwztSPe9YMa8HU8yGLtl3ItGRQmfA2M1Ysm3Ml/foLYSXhyG/tOGdrJoDaYyA Z/Po29zIXzhMiMYf4gD563nU/UeGWB81tQ0ylY/X4/qh03ZGjJLVebDrb1S7EpshE5FJ gFY/8aFlwnaqi+V3Ca4yDJZuvAejxcm78xwE73GiuOr/RW/0Pd2xndBQNJj9p5afmGEh E4aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Kptk1G8n8W++GD4hQPDD3cJvilOZ3ipquFpZBxrhus0=; b=T5ZexXxgxDcMJ8TpQs/x00dYSV/yNotsifdv+TyMOMw4n2xGbCBJmbOFueBHd5FeJn f2ScGakLAWCqDWGVubW1ZwH6ij3jDO0TGLj5TZby8JVJx+kz4JDaipyqa83zHsTxBSJL 2pDZKPjFhBPBxnvxlf6mK8PRZ4vm2BaqMWUJUA/XW0/YGqRXWPaYSw3exqTUMQNkKlIN P8oLWbkgfKrUsFr61mzNVnrcx0YJ7+3vbNPEZRzhwUzDs3zXAg9QZc/X+gMzOhYANTss MOzGI0+kR89eOy2SlSGW7acDXF9GC2/IfZmdyzMcegDkhQNMuaeTwwMzg0LWI9ievI2G YiBQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9oGXQygl1Wv+XEqtPXve5vJw4tUMCzLUfNIOsOGKbKDaX1OAXj RzIKb9ppk2tzrwE5yneKQl4= X-Google-Smtp-Source: AGRyM1szptR6rS/YnAO+p3x6KA4A1U0m2wj6PxBukdjsgApsGwbodT+YwSEeRG1Dw2WKTy17gyfOfg== X-Received: by 2002:a25:b790:0:b0:66f:7978:f166 with SMTP id n16-20020a25b790000000b0066f7978f166mr860676ybh.17.1657669555028; Tue, 12 Jul 2022 16:45:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:37d8:0:b0:66f:5acc:d67f with SMTP id e207-20020a2537d8000000b0066f5accd67fls3229338yba.11.gmail; Tue, 12 Jul 2022 16:45:52 -0700 (PDT) X-Received: by 2002:a25:8192:0:b0:66e:1f8b:e5a0 with SMTP id p18-20020a258192000000b0066e1f8be5a0mr855046ybk.329.1657669551919; Tue, 12 Jul 2022 16:45:51 -0700 (PDT) In-Reply-To: X-Original-Sender: es6.mike-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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30953 Archived-At: ------=_Part_64_919910120.1657669551148 Content-Type: multipart/alternative; boundary="----=_Part_65_1351318.1657669551148" ------=_Part_65_1351318.1657669551148 Content-Type: text/plain; charset="UTF-8" I've been using VSCode with the local lua debugger extension to debug pandoc lua filters, and it works great. On Monday, 17 January 2022 at 22:13:33 UTC tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > Unfortunately, I don't have any experience with zerobrane or other lua > filter debuggers. Something that I should look into. > > On Mon, Jan 17, 2022 at 3:57 PM Jacco Steur wrote: > >> 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, tkur...-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-discus...-/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-discus...-/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 >> >> . >> > > > -- > T. Kurt Bond, tkur...-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/9e1098df-5871-4650-8171-c5b1889171d7n%40googlegroups.com. ------=_Part_65_1351318.1657669551148 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've been using VSCode with the local lua debugger extension to debug pando= c lua filters, and it works great.

On Monday, 17 January 2022 at 22:13:33 UTC= tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Unfortunately, I don't have any experienc= e with zerobrane or other lua filter debuggers.=C2=A0 Something that I shou= ld look into.

On Mon, Jan 17, 2022 at 3:57 = PM Jacco Steur <jacco...@gmai= l.com> wrote:
Hi Kurt,

I have the filter exammmple=C2=A0working as wel=C2=A0using the deb = package. I also need it on macos so thanks for that tip.
I also w= ant to get it working with zerobrane debugger. I think that really makes se= nse when writing a custom fillter.

Do you have exp= erience with zerobrane or any other pandoc lua filter debugger?
<= br>
Jacco.

On Mon, 17 Jan 2022 at 18:55, T. Kurt Bond <tkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
=
Hi,=C2=A0 Jacco.

=C2=A0I have found that using the homebrew package manager=C2=A0= =C2=A0--=C2=A0https://brew.sh/ -- on Linux and macOS makes = having an up-to-date version of pandoc very easy, and I just tried the incl= ude-files.lua filter with your command line=C2=A0
pandoc= --lua-filter=3Dinclude-files.lua sample.md --output result.html

using the= homebrew installed pandoc (version 2.17.0.1) on Fedora 34 and it worked fi= ne 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 p= andoc for work fine there.

--
<= /div>

--
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-discus...@googleg= roups.com.
To view this discussion on the web visit https://groups.google= .com/d/msgid/pandoc-discuss/CAN1EhV9rpeD57BXHOhN8%3D3DBEWfMYmD4wsdkGg%2BQ5L= 4Bnr7-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 pandoc-discus...@googleg= roups.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://groups.google.com/d= /msgid/pandoc-discuss/9e1098df-5871-4650-8171-c5b1889171d7n%40googlegroups.= com.
------=_Part_65_1351318.1657669551148-- ------=_Part_64_919910120.1657669551148--