From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32367 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: pandoc-select-code Date: Tue, 21 Mar 2023 08:59:47 +0000 Message-ID: <2b5ac86b6bac4345a332c34ab1547e7e@unibe.ch> References: <40756e3f-ae25-4d1c-bfd5-6ec8321dd51dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_2b5ac86b6bac4345a332c34ab1547e7eunibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2474"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBBXE4WQAMGQEGJSF7XA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Mar 21 09:59:55 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1peXqU-0000Vt-MR for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Mar 2023 09:59:54 +0100 Original-Received: by mail-lf1-f64.google.com with SMTP id e12-20020ac24e0c000000b004e84231dde1sf5278491lfr.15 for ; Tue, 21 Mar 2023 01:59:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679389194; cv=pass; d=google.com; s=arc-20160816; b=Ukl5pVJ5lleeCSV03vLNL+jJArgUVJ+kCh7TkXY+JtszpX4i4qXvB5J0VgUU3/9tz9 CSJaLLIqOzeuYq4aXNd5twhoMMjRMPjHh1Van6j51Jx+wg3x20JsgFCnVvp/DpOn8tEj if0+4FZwUbVePYXvSgFk9FWGxaW5+9y8Ba8kkzbOS+vKZLfLBR8bjkPFvFeAfItP7Eym Bojg7fiQmvy4wb4oC5ZmA/M4ccUaU7RNUrHBIsV1eKYtXKXJNCW5d1YX3Z/sM061VhA2 vuG5TSoXpmhmEY6qceR8zeE8+wVfn3Rbj4zk3x9SsfklGnzLSo+Dp6iZlnN7eRzN69Wn nBzw== 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=T13QW8RWhv8iOpS71QZbq97wehpRGHl/EUrXd1mN1G8=; b=dzob8tyylrvL+jrfPkZX3W2HTXWyqdgBgJI3KiFnEG/8JOYRGbsxGMaIoscwNHvQc4 V2Un1U+37vAkfwKQniODbZJ6kTNFWNz/sE4ImHXQe5OvyTX3vfZiufWluY8bpn1xkNfP ad2aaupLKzW131a/4BvLFCdWFaWG5Fw+aNqVwjhBg01xQfAqVmn04p5g6wmHTZmNk6Yw br+lyy5nzhWSFXChEXS20OQV1yV1B28S5DUBYtxKd/63VR0Ud0GH6/g1SJPLUXpvdcRU dqbSt5YgU6e/XRAIL799zD+vXqOsO6kvHWAcWeRl6mhW+zJJS5OSs5iYZ7TCPXmzF83B /EFQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=MOpvlVRL; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1679389194; 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=T13QW8RWhv8iOpS71QZbq97wehpRGHl/EUrXd1mN1G8=; b=gQxu6VSR9h+X4zIpCbsn09vYVhK4ozmUZC/X7v6K3qgOhOT/+ScU+liOegUqEjxpgB VSmtW3W+BXBdx04/+DBcK1jdNIYoShtat5m5772GMU7hD1EsJp5gOfaQ4wj7BqhlHKgn 6N+bN9RpR3P0MVzWXDC067f52CniypQerwR/ZLOffX2hITCHiunqBy+QJJoTDTfdZNgE VFQBuXyZklAdO2pSDWgpqPL+M0QoiFdf+arS5y3xiq9zH6R84ziSzUV95R0Js5DandTu 7ND71TscEmTjT9KbXZ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679389194; 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=T13QW8RWhv8iOpS71QZbq97wehpRGHl/EUrXd1mN1G8=; b=DuDOlTHji1XRNr4yLhjc7ectSSJKWFmrW8F/7O3o9lkcMf/j4NMF9ZVJKE6Bpb3WTI RNp3ytPXeHuORZpFy69dkpGzoQQF99Ffe80Rkf/sQPbi3iAbKf5Vegkqw3PCu4vmA3yK XC649d6XEQ5LOSNn1iuuzp9Fe5ilgwCol+fxteC+n147/ldxx/2+InqFpYlAx2/MROvS sRXKUiHWaxh0+QwdnWhvEs6ZNCb4wz6TqMDmgtyLSHlkvgRUPHf Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXzuqhfMMy1sPmFQhzLQeUdpfk0bZfLwW8NpW2qbXkn2uRP2dFf ftgc/bVoCWedxwGrY9V8lNE= X-Google-Smtp-Source: AK7set8Rdqg1T5kBDvDsMC5lzNhbL+JEZLXQVnUXF822Z0yGE8+r64oNmxDfdT0Sbm4Nfe7auCenew== X-Received: by 2002:ac2:508b:0:b0:4db:38ba:618d with SMTP id f11-20020ac2508b000000b004db38ba618dmr552903lfm.12.1679389194034; Tue, 21 Mar 2023 01:59:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:39c6:b0:4e8:c8b4:347a with SMTP id k6-20020a05651239c600b004e8c8b4347als2287960lfu.1.-pod-prod-gmail; Tue, 21 Mar 2023 01:59:48 -0700 (PDT) X-Received: by 2002:ac2:5e9b:0:b0:4e8:6101:bce5 with SMTP id b27-20020ac25e9b000000b004e86101bce5mr581313lfq.39.1679389188700; Tue, 21 Mar 2023 01:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679389188; cv=none; d=google.com; s=arc-20160816; b=w1PgB6EIO/FZaC1VSNPF9SQUlTvS3BIuxXPVFeULoVjyC5ax+ff6XKeK7HsFud0n8S ezrKUuieZ2oIpn3QP0997Jiz3KuDpuwBU30UckYm3918swSwmHM/GtqRzDbLlqqLRiqn tVwNEc0N7QV+pSDTuHgwskpwOKLohzR39igmPl1WO4nEwCQgbHjsqDUVSe/1xp7/zjGb 1aNT0a41iAH8kgAePyrzadLz6CyCw838lf4hkR8s5YMr8h4o2iUncgqx9V57PiaXxoqy 4TJOUt6ujEkRoX0laygjYrXWTuJOp2nQ60/I7OuvOdRjsMxWwOlqAagl+pdvlU/AkadR ak5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature; bh=bFbnMXmmKxJ1BeVYVGpIFxxpf2sSxq+0uumPPY9DkW4=; b=KNdik+njchRRArFhUnYwUcGrxj0zaUTL1uNABNt6GSZP9JAWC149FQWMnhV2gSF93t FzYcuWlYMX56o1N4QczoEeqmtIESvJmgtlV0KXqm2vzwiE18XD57Ba/l9feNlAqPU3Vk 7DGBtdboKRszy/HVHxJ/OrIYcK4v2eCABxRHhJAqY+Pxb6E8E1AstYLUMNJLT1+bwBE6 uEWFBcc1fve0l0IRnpd40+MK+Nhmx9dWL4UBO09n8aWf6ln659IN3YcyZYVf30H4k/o6 7Socgh6KF0LqCM3F7G0pAOCLZzxxAqYfbuqZKDO4xpTtEsHekBL6MvNbdqOpWGVxe9U9 iS3A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=MOpvlVRL; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.0.83]) by gmr-mx.google.com with ESMTPS id c29-20020a056512239d00b004e9d34ac318si275780lfv.5.2023.03.21.01.59.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 01:59:48 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) client-ip=130.92.0.83; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-01.campus.unibe.ch [130.92.13.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id 2FBDD5000B6 for ; Tue, 21 Mar 2023 09:59:47 +0100 (CET) Original-Received: from aai-mail-01.campus.unibe.ch (130.92.13.40) by AAI-EDGE-01.campus.unibe.ch (130.92.13.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.21; Tue, 21 Mar 2023 09:59:41 +0100 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-01.campus.unibe.ch (130.92.13.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.21; Tue, 21 Mar 2023 09:59:46 +0100 Original-Received: from aai-mail-03.campus.unibe.ch ([172.18.73.17]) by aai-mail-03.campus.unibe.ch ([172.18.73.17]) with mapi id 15.01.2507.021; Tue, 21 Mar 2023 09:59:47 +0100 Thread-Topic: pandoc-select-code Thread-Index: AQHZWRUzJ0wOa3hY50CbcvoQO3tsY68E895g In-Reply-To: <40756e3f-ae25-4d1c-bfd5-6ec8321dd51dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=MOpvlVRL; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:32367 Archived-At: --_000_2b5ac86b6bac4345a332c34ab1547e7eunibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for letting us know about your new filters. In general, is there any chance such information could be collected somewhe= re? 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 know there=E2=80=99s this page= https://pandoc.org/extras.html) And we also have a repo for lua filters, b= ut I=E2=80=99m not sure Amy=E2=80=99s filters are covered by these resource= s...) Best, Denis Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag von Amy de Buitl=C3=A9ir Gesendet: Freitag, 17. M=C3=A4rz 2023 22:13 An: pandoc-discuss Betreff: ANN: pandoc-select-code Announcing pandoc-select-code: a pandoc filter to extract only the code blo= cks. You might use this, for example, to extract sample code from a tutoria= l. This package has been available from my repo 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 using Pandoc with this filter and the --write=3Dpl= ain 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 ex= tract the code examples and verify that they still work with the latest sof= tware. 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 "= 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/40756e3f-ae25-4d1c-bfd5-6ec8321dd51dn%40googlegroups.com. --=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/2b5ac86b6bac4345a332c34ab1547e7e%40unibe.ch. --_000_2b5ac86b6bac4345a332c34ab1547e7eunibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thanks for letting us know about your new filters.<= /p>

 

In genera= l, is there any chance such information could be collected somewhere? I fee= l I=E2=80=99m missing out on a lot of stuff if I just try to keep track of = these interesting things myself. (I know there=E2=80=99s this page https://pandoc.org/ex= tras.html) 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...)

&nbs= p;

Best,

Denis

&nbs= p;

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

 

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 using P= andoc 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'll ex= tract the code examples and verify that they still work with the latest sof= tware.

Hackage: https://hackage.haskell.org/package/pandoc-select-code
Repo: https://gi= thub.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-d= iscuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/2b5ac86b6bac4345a332c34ab1547e7e%40unibe.ch.
--_000_2b5ac86b6bac4345a332c34ab1547e7eunibech_--