From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29997 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T. Kurt Bond" Newsgroups: gmane.text.pandoc Subject: Re: Using lua filter include-files on pandoc 2.5 does not work Date: Mon, 17 Jan 2022 17:13:19 -0500 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="0000000000006ea02e05d5ce76e5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40017"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJYFKFHUYHRBC6US6HQMGQEWKTEHAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jan 17 23:13:34 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f192.google.com ([209.85.219.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n9aFp-000AHd-OM for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 17 Jan 2022 23:13:33 +0100 Original-Received: by mail-yb1-f192.google.com with SMTP id w189-20020a2549c6000000b00611c8be224csf25108619yba.14 for ; Mon, 17 Jan 2022 14:13:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642457612; cv=pass; d=google.com; s=arc-20160816; b=VAk+1iuo+f2V3VO6miyesnOPoZrLUxNiIIdz1rZKI1yJGVPSR4YyREQLmxq/3vuhWX dj58+17JUg9XpSElPKjy0AMu9y48sy4iRJAlpRz1APrHjoTADq6b3zdkyT8DSad7+HsA Uy7pHJ+Zg47j7MPcNGX7vIC3F6FkvRW+jHv+N60r853Y441Dr0C38mzE6wodii9XJ2a1 W63RYsWfkwGwXiSGsj9uj4GRLQ7dtvJ2Ddp575NtD2tJDzRnWx2EivbUj/DyS568hohW /U3tSrwZIpUb9F+C1gYekIcXqL/jSh5eoXeqoTbX03ga0GvZhDbfsyJDbL5m2JpcqFbM l0Yw== 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=U2TOtXorFeKIxmZL38iwSj24MZtnvStc/R0VQJZHchc=; b=RDMVDAO1XgFOkrixgXM/0vUNnmChxB/9l9Zd0wexMDDkSRRjtAooaEyAIOg6me4RMa Gw7nYExqZZEyCxanfC0gI0q8JrNDUVpGQtHIie3Uz7bz6CS94h8x9gGBW84+PD2ppzw/ 1XluCnonuF19sKQVs9CbRyW7VORSqcG+uKgRnd/fMwMCuXucs2GM6XD0Ff58eVpU7lmv mmxdoaG3iZ5WwelzGwvWbHLhgAD5iXHhNC6lfAgRiB/zjRhFxx8BJPi6M7ruXSWkJ5B1 MdYk0r834tlxrHS9PCna5CjrVUxuvOGXFh8hEmSAT3FDc5bNi/Al4ux9oxEp+iTgy9IK sMUA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XHuRvlSD; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92d as permitted sender) smtp.mailfrom=tkurtbond-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=U2TOtXorFeKIxmZL38iwSj24MZtnvStc/R0VQJZHchc=; b=LNLrV7e8NBkaQ9sLKcsiMIo65k68kHtIgOSe2lw4hmgpyINykpkMkhV9DrTtt4vlf8 I3jRDKPNKxE1tkWO8OWeOaW36K8E2aZK/49yoOF2SMg951cfgI9jKDNcvjhklm+1jCSK yqa9aa8VQdgTHK9nnAX2vhGKOx+H0sB5Jf/4npIRmXMPmrvYY3YIaUJxHl2VZ787KV6r fKU4tttQvIfFWegvoJQ8m8qipGpvDecRZ+/WKFJa5QCK245z3KvrLZMpt1PokOpsJ+4u H2UduJzrP0KKc3RYxkacvS0dxujLvd0RNrstG26A2b7i/18hF2uou+TNO1t9lTnNgpt3 vcYA== 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=U2TOtXorFeKIxmZL38iwSj24MZtnvStc/R0VQJZHchc=; b=OTN4eH9WWpgFg/Lk4GBSSFg0XbcJRRNZcgBJBvkMm1PEQCvQ0vv0YGZLiL0v9LMrKB J23BCyk/eTTpZkM0VXjOqWyi1fOprKaq7jY9Vka7oWxcQsG7+HYsX3dXQhVljQ6PA/ai VyqxUsS/sXllUW8CMCuZtj8VnEwpruOVzicsCNc0wpuLwqk5YJXL+Rg/2B2tpEdCrk8R 7XupAaen92BYXb0is3baz3Bmmko3o1aFC4pD7ZHkzAqjon62OFGuiHMZ97ZXw3Aakv2Z LHZn0QygUIg32lAizjsRwa+IuDwNnl+754WfuRCaIfug+qsl1RTwC5PRz5AnZtmc34BP TvAA== 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=U2TOtXorFeKIxmZL38iwSj24MZtnvStc/R0VQJZHchc=; b=K+Y23gj5jbRqcv68r0HqQ/OAq9DLbwxAPpe8EZ4JOyOtJPtfmVpAbMOiIpo6ksr443 ox5rQjDrPgM9APfcC4FDQ5FvAQbWYazzaRqz7sWqsw1IXnpDYR5vPvuEAqvJj06S2obI /kfNyURt24nZBSHOURRqAMY0JvVjv0gO8oDVR/iubYWY5yNeeNhlOuD23kix6zxiMjSu Y0MsQ1ndTJyZqlLcz47J/VZlgkEkMieCWRuTvEg5DYRPVNxvw+tsyYdQEwwdYDhUwQU0 9fu7vXVDTaBdYVwu/rqF87aSsjNPFBxu09l4mPOXOcvh4jjSlRecZgWeXy63/9d509Pe QWCg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531vefGz0xjx/3vO0unLxlRanWaxJlqoSPTNnxnYOwboJz62R4a+ fmzxgPCGd9SDKGcavXIYu5o= X-Google-Smtp-Source: ABdhPJwASnmuWMKnO/CzO5bco9pwgQ8lXlU5pZpTKsnPJeQW3WcjExwBmvw7HaIJFWtzKLsVO5odhg== X-Received: by 2002:a25:32d2:: with SMTP id y201mr1622246yby.359.1642457612668; Mon, 17 Jan 2022 14:13:32 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:6103:: with SMTP id v3ls567092ybb.0.gmail; Mon, 17 Jan 2022 14:13:31 -0800 (PST) X-Received: by 2002:a25:bb45:: with SMTP id b5mr13320631ybk.174.1642457610944; Mon, 17 Jan 2022 14:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642457610; cv=none; d=google.com; s=arc-20160816; b=PscnyQvMwwqiYzG7f+KfnZdt0wB1FqRkkTbaa5ZDFGOyW/gRlmPuKqIwH/xXMF0Lpx P61iy/EipWD7Yu8cgcLp1kEQN1SgNj38L0QDdK8IXbAu2dOI/loCgnMfGPU5uxiX9apy njd258P/ZK8FNs6PduGA98UChuCHBfUKen/i4P2mr+RDO0f1ev3BAtwWo9OhhTtlSmov ot1V0gORQGLxvsSaqvijueOm4LZpbZcdTKKi2qFhgXVYon+FR1Ywmid1dwpiiGfNBNjq Bo4I2f6+78KeuVEAwzA7bmniQjT15cagXqW3PE5ebF0zpjhAtqK0obMooVO1Q/Et3n1A pBmw== 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=ZiSpTNyk9AOvRmqSd2oovIy3Cq74YI9olQ+5Z/L461E=; b=Ifcvz2/vv3iqTVDOARdZZ/NnRTfZC9Z+9TE+5zRpBLzSBPTM9yWIc0pmf0jKUc5zDK 9i3cWEI7Wr3m2PkC1mzybDQrcF74g3AkcM2GX3/QegJMCzr5HxPHYzH74R8S6NTgPQ5M woK+mecImuWUkanSfQbibVKzdwUyIvzE5aPQuqwtQ2qHmDHksv3cjFDtKniCtDotbjLz B4eEHT6as8hWP416xdoDh/5uvm7i3FNHm4IsT+T4O9ZC14v4zWE7OUzw4Ntzq79+zvYF XLbFNUZzu87T9m9i+gKGO9ezf8+AzcjtxUkRXl6qhcyyDNuGxdvRyNcBvdTxa2q5jI7W V9xw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XHuRvlSD; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92d as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com. [2607:f8b0:4864:20::92d]) by gmr-mx.google.com with ESMTPS id d3si177682ybq.0.2022.01.17.14.13.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jan 2022 14:13:30 -0800 (PST) Received-SPF: pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92d as permitted sender) client-ip=2607:f8b0:4864:20::92d; Original-Received: by mail-ua1-x92d.google.com with SMTP id m90so33143905uam.2 for ; Mon, 17 Jan 2022 14:13:30 -0800 (PST) X-Received: by 2002:ab0:13ee:: with SMTP id n43mr8426243uae.9.1642457610492; Mon, 17 Jan 2022 14:13:30 -0800 (PST) In-Reply-To: X-Original-Sender: tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XHuRvlSD; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::92d as permitted sender) smtp.mailfrom=tkurtbond-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:29997 Archived-At: --0000000000006ea02e05d5ce76e5 Content-Type: text/plain; charset="UTF-8" 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, 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 > > . > -- 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/CAN1EhV-8P3RK06EdJ9U3hL-AZgxE6i93BMVDc3ySn4cuYz_esg%40mail.gmail.com. --0000000000006ea02e05d5ce76e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Unfortunately, I don't have any experience with zerobr= ane or other lua filter debuggers.=C2=A0 Something that I should look into.=

= On Mon, Jan 17, 2022 at 3:57 PM Jacco Steur <jacco.steur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi Kurt,

=
I have the filter exammmple=C2=A0working as wel=C2=A0using the deb pac= kage. 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 experi= ence with zerobrane or any other pandoc lua filter debugger?

=
Jacco.

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

=C2=A0I have found that using the homebrew package man= ager=C2=A0=C2=A0--=C2=A0http= s://brew.sh/ -- on Linux and macOS makes having an up-to-date version o= f pandoc very easy, and I just tried the include-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 (ve= rsion 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 ex= ample on that machine, the other things use pandoc for 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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADjKMHroW1%3D= m_XaNT%2BB7Mn8PU8eUc2nEp4AVA6B1fVwMr4W2Hw%40mail.gmail.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/CAN1EhV-8P3RK06EdJ9U3hL-AZgxE6i93BMVDc3yS= n4cuYz_esg%40mail.gmail.com.
--0000000000006ea02e05d5ce76e5--