From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32380 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Julien Dutant Newsgroups: gmane.text.pandoc Subject: Re: pandoc-select-code Date: Wed, 22 Mar 2023 16:41:11 -0700 (PDT) Message-ID: References: <40756e3f-ae25-4d1c-bfd5-6ec8321dd51dn@googlegroups.com> <2b5ac86b6bac4345a332c34ab1547e7e@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_212_1821887282.1679528471400" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18139"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC5Y3356IYIJTJHOUADBUBDHATLZ4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Mar 23 00:41:17 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pf84z-0004Tk-1L for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Mar 2023 00:41:17 +0100 Original-Received: by mail-oo1-f59.google.com with SMTP id q18-20020a4a3312000000b0053b61757527sf2235722ooq.9 for ; Wed, 22 Mar 2023 16:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1679528476; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=2DFPIHhFYaMDIhW9AS0p21eU+dqySQiCPdbmY4PYLlY=; b=fE3qLWi/4uJ3nAfEEVqPTNHaI8DBjcV8ZEkotMpCgVOGb8UTihQ50xFgMUWv8TH8i6 wJTh2mldMcrK8Y6aj0Wz6hoF0rVL0x+dVmVnuGX5iWNltA8tpHMEceYsE0CswoYE8tgo uXWLsrZ0VoFEmrLWlH6eodpnPeAmmmzfVy0gJdkRV3gi47UPNrwiodY89PqzDkDhAoP2 XQJ8ETqBoxNko6aTp0BhYfKJrSl1BgZSIXWhtvFOE4T8DVJ6PnmqyOZMZn+qvuV++JNi 7Ib6WCQJPGcUoQrt37F/AivDOHo45704T1rHdlwfjPMfQjxo3zsaPwpJujlVNmv+Nxyo 596g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679528476; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=2DFPIHhFYaMDIhW9AS0p21eU+dqySQiCPdbmY4PYLlY=; b=P533nG7kj69KP8FISvMBl6f2ixcn455jE7GUnVEU+LRd0emzJtwmF3zZ3WVDAQF5IM W4LhtGtJBmSaKMpsXafTN0hWzo7hi1+8bpd8NdjSiiYciTaD7jv7QO9mGJNejmcGtpa1 0nmAM5MFTTOJx4AIRsVdeCOKiYn4Z9GTQz7uz3//zToxhcEzEXNG7uB6cNHJ4z6JD9zt 2aRJzOVIJC7eqAI5ZGxZKYdh69ZyMklj7gWA44xSkNsCotlN8MHYDiZy9WIeHrbIFygW Ruys7SEzSyB9vBUzCc2rREoPwPgPZMf+GSaHylOBDugYSnAsPwzDgHN4snq0bcAlKhXP 8cLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679528476; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=2DFPIHhFYaMDIhW9AS0p21eU+dqySQiCPdbmY4PYLlY=; b=ypDVCvZgaH50tOs8iIofR1HCytqekUSD9q6L+e6wsvvyQ0R8DbcHVPPy5DIXkeG7R+ EVXw5compB5mUQri+GtYuDxc45WMSCFBN73j9tgXlHMdCluq4dS3WNc1uMJLb+NV77u6 VABATxY+7FGH5ndIUIDrfM4P5kaPD+uqlMOy1XxmBlsBSTi2OgXDn9ammpKHMD6D+i5x LoAuQr50SmCuUrvbUqUlxCoQdeoVbljAuTDd3HKh0H8oXzni5s20+WSkg4Ylmlhm/Hle Hm7FzaIb8wpCktUpA0lKljvYqeEHcMQdMCCdWabsZNPXK+oU5C3bync9+oCiB/2gBeHs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWHMt6Kz8Lnr6pPURhkAJWM4blWEZjZHpjiwQs6+tWvjnHR5USz tezL2fye7DVKS46qkuzamj0= X-Google-Smtp-Source: AKy350bH1U8NFKI8Y2NN9n4kMHbrFZmE+EQae9990bqnLwc8cbz7Y4P6yjuRLtahO97C9d77uYi7YQ== X-Received: by 2002:a05:6870:ea86:b0:17e:2e88:40dc with SMTP id s6-20020a056870ea8600b0017e2e8840dcmr429591oap.11.1679528475954; Wed, 22 Mar 2023 16:41:15 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:e142:0:b0:37f:a766:5f32 with SMTP id y63-20020acae142000000b0037fa7665f32ls5148252oig.5.-pod-prod-gmail; Wed, 22 Mar 2023 16:41:12 -0700 (PDT) X-Received: by 2002:aca:a90e:0:b0:387:12da:8924 with SMTP id s14-20020acaa90e000000b0038712da8924mr1517399oie.10.1679528472210; Wed, 22 Mar 2023 16:41:12 -0700 (PDT) In-Reply-To: <2b5ac86b6bac4345a332c34ab1547e7e-NSENcxR/0n0@public.gmane.org> X-Original-Sender: julien.dutant-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:32380 Archived-At: ------=_Part_212_1821887282.1679528471400 Content-Type: multipart/alternative; boundary="----=_Part_213_1186199088.1679528471400" ------=_Part_213_1186199088.1679528471400 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Agreed! There's the wiki page=20 https://github.com/jgm/pandoc/wiki/Pandoc-Filters which seems to me a good= =20 way of publicizing filters - Amy, you should list yours there! It doesn't= =20 seem widely used though, not sure how many people know of it. It's not=20 listed in Pandoc Extras (because it's not a curated list?) J On Tuesday, March 21, 2023 at 8:59:54=E2=80=AFAM UTC denis...-NSENcxR/0n0@public.gmane.org wrot= e: > Thanks for letting us know about your new filters. > > =20 > > In general, is there any chance such information could be collected=20 > somewhere? I feel I=E2=80=99m missing out on a lot of stuff if I just try= to keep=20 > track of these interesting things myself. (I know there=E2=80=99s this pa= ge=20 > https://pandoc.org/extras.html) And we also have a repo for lua filters,= =20 > but I=E2=80=99m not sure Amy=E2=80=99s filters are covered by these resou= rces...) > > =20 > > Best, > > Denis=20 > > =20 > > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im=20 > Auftrag von *Amy de Buitl=C3=A9ir > *Gesendet:* Freitag, 17. M=C3=A4rz 2023 22:13 > *An:* pandoc-discuss > *Betreff:* ANN: pandoc-select-code > > =20 > > Announcing *pandoc-select-code*: a pandoc filter to extract only the code= =20 > blocks. You might use this, for example, to extract sample code from a=20 > tutorial. This package has been available from my repo for a while, but I= =20 > have now uploaded it to Hackage, and also made it available as a Nix flak= e. > > I originally developed this filter because I wanted something like=20 > literate Haskell, but using Markdown. I wanted to be able to write a=20 > Markdown file with Haskell code blocks, and then be able to compile and= =20 > execute it, or use Pandoc to produce a PDF. Cabal doesn't support that, s= o=20 > one workaround is to pre-process the file using Pandoc with this filter a= nd=20 > the --write=3Dplain option to produce a source file that can be compiled. > > I also use this when I'm updating a tutorial I wrote some time ago; I'll= =20 > extract the code examples and verify that they still work with the latest= =20 > software. > > Hackage: https://hackage.haskell.org/package/pandoc-select-code > Repo: https://github.com/mhwombat/pandoc-select-code > > --=20 > You received this message because you are subscribed to the Google Groups= =20 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= =20 > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/40756e3f-ae25-4d1c-bfd5-= 6ec8321dd51dn%40googlegroups.com=20 > > . > --=20 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 e= mail 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/e0f89eeb-15e4-432e-aec7-4dea9fb2adc2n%40googlegroups.com. ------=_Part_213_1186199088.1679528471400 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Agreed! There's the wiki page https://github.com/jgm/pandoc/wiki/Pandoc-Fil= ters which seems to me a good way of publicizing filters - Amy, you should = list yours there! It doesn't seem widely used though, not sure how many peo= ple know of it. It's not listed in Pandoc Extras (because it's not a curate= d list?)

J
On Tuesday, March 21, 2023 at 8:59:54=E2= =80=AFAM UTC denis...-NSENcxR/0n0@public.gmane.org wrote:

Thanks for letting us know abou= t your new filters.

=C2=A0

In general, is there any chance such informati= on could be collected somewhere? I feel I=E2=80=99m missing out on a lot of= stuff if I just try to keep track of these interesting things myself. (I k= now there=E2=80=99s this page https://pandoc.org/extras.h= tml) And we also have a repo for lua filters, but I=E2=80=99m not sure = Amy=E2=80=99s filters are covered by these resources...)

=C2=A0

Best,

Denis

=C2=A0

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...@googlegroups.c= om> Im Auftrag von Amy de Buitl=C3=A9ir
Gesendet: Freitag, 17. M=C3=A4rz 2023 22:13
An: pandoc-discuss <pa= ndoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: ANN: pandoc-select-code

=C2=A0

Announcing pandoc-select-code: a pandoc filte= r to extract only the code blocks. You might use this, for example, to extr= act sample code from a tutorial. This package has been available from my re= po for a while, but I have now uploaded it to Hackage, and also made it available as a Nix flake.

I originally developed this filter because I wanted something like literate= Haskell, but using Markdown. I wanted to be able to write a Markdown file = with Haskell code blocks, and then be able to compile and execute it, or us= e Pandoc to produce a PDF. Cabal doesn't support that, so one workaround is to pre-process the file usi= ng Pandoc with this filter and the --write=3Dplain option to produce a sourc= e file that can be compiled.

I also use this when I'm updating a tutorial I wrote some time ago; I&#= 39;ll extract the code examples and verify that they still work with the la= test software.

Hackage: https://hackage.haskell.org/package/pandoc-select-code
Repo:
https://github.com/mhwombat/pandoc-select-code

--
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...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/40756e3f-ae25-4d1c-bfd5-6e= c8321dd51dn%40googlegroups.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/e0f89eeb-15e4-432e-aec7-4dea9fb2adc2n%40googlegroups.= com.
------=_Part_213_1186199088.1679528471400-- ------=_Part_212_1821887282.1679528471400--