From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26087 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Henrik Klang Newsgroups: gmane.text.pandoc Subject: Filtering entire files based on markdown list item Date: Wed, 9 Sep 2020 04:33:19 -0700 (PDT) Message-ID: <2dcd5988-9b74-47a9-80bd-ce4a64fee169n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2524_420011890.1599651199462" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4712"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD5OJP6RVQGRBAH34L5AKGQEQMV4FDY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 09 13:33:24 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f184.google.com ([209.85.167.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFyLs-00017D-2Z for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 09 Sep 2020 13:33:24 +0200 Original-Received: by mail-oi1-f184.google.com with SMTP id l138sf802843oib.17 for ; Wed, 09 Sep 2020 04:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=npkn8I7TVncJe3hbcjBYy7QfBrtIu3WDZnqV+TyRg2I=; b=I9VPVj2g0aF/cnF3F7rHY5VvsHVSU4SMiMqh002Ks9gy1wTAGmGjSf9kR3gJMOvTPp 4suSN9qlrJhHal76guTvr2SgTZER6OvNfsTpziHm/RZp4K6Dq8uh9Eu/Fb74LE5xoUvg KgESTj//WgpTIewGXGrPoSCP2PSGnMjwSJ8rDoA6lJ6/51VwuXDOBUHsG20qrKZK5YY8 C4qw9VTxSWEMCctVvmX6f1TAdNTXbh8t+rzNyO8QgBJivwvmV3QkXBuzb96fk5c+PtWa c63amxw858qAun7cKGCLS/7Of3R0TVE5Z2oPNf8n+nmZbrUgp2Q6FlqqUxaKFys6WQaU 0PGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=npkn8I7TVncJe3hbcjBYy7QfBrtIu3WDZnqV+TyRg2I=; b=BXYFaJLgetP/fABPpHlL7uNjI384xKGpoDb1O7MKQZxA4vBZdrWhLw2AfZnTm142PQ IcnCL2iGLxkH1l8Zl9K1yvuyxd+gTjKoK0SORLkVw12Y0oLhNQjgJDbP1C5xbEBXsDdU 2vaPn8eZ6EPD6fR+wSDxeYeQltLvoRP0RXJFITKEVOWKWeSrao9YUkENyJSIps8q2PSv aE/7kJUndhwupiBtceqenSe2sDCo6tFH3T9ssjxjWycudtxMnyxKm+mLCzxDlDk8V9Uw OETXGfTQU5FFjeS6boG0sai1oh0DwixzwbFfi2KSGN3eRw2YnZaRZub/dD3WtUbVDOn2 iDhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id: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=npkn8I7TVncJe3hbcjBYy7QfBrtIu3WDZnqV+TyRg2I=; b=AIshBn42WLoBvu72PtHfjfpKUx1PwRwvlAFJMeEpLdeofv6XUCcSevqtAy3mUJ4r4r LNP3h9cVgCsaUjFTpupmsiBTkqWY9wCnHa6L3AbZitP6z4Z4h5CY4NDwOZamMvAhJrBL 4Vgevn8pymH2DQy52Lhz5m5acrbKDz74JWCl5bPJGfa4OcDzd2NNU2smAuckesc3Pe+6 lZydfPFMm/iRIRySx2m+n8L/FrOAbrbSJi5wSvqhJO763sHUp8Q/XczwgBzu2PbRoeTb bP2K9p8Pf6XF9ouu3BZXo5iIwLbB5WSLVJtT7rR+C/6uaAOdnfZFKrQfpQTEQ+kRRPmA Ik0w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532EByP0r17lEkV918mrhPJ7Six0IWdDlnrUXzVWBzsfzg110MH/ qTAELEfnq0DigUKcTSqXJw4= X-Google-Smtp-Source: ABdhPJxGiYw501eAPSqRcAzJMwS5CxWjbDadggsZ6JvLtl1ymo1tEKr6h1FsGFROGQoMsGCSNmQB1w== X-Received: by 2002:a05:6830:22cb:: with SMTP id q11mr385418otc.232.1599651203064; Wed, 09 Sep 2020 04:33:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:3a07:: with SMTP id h7ls455867oia.1.gmail; Wed, 09 Sep 2020 04:33:20 -0700 (PDT) X-Received: by 2002:aca:544c:: with SMTP id i73mr308701oib.109.1599651200307; Wed, 09 Sep 2020 04:33:20 -0700 (PDT) X-Original-Sender: henrik.klang-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:26087 Archived-At: ------=_Part_2524_420011890.1599651199462 Content-Type: multipart/alternative; boundary="----=_Part_2525_870513581.1599651199462" ------=_Part_2525_870513581.1599651199462 Content-Type: text/plain; charset="UTF-8" Hi, I have a number of markdown files that I concatenate with Pandoc. Each markdown file has a second level top header (##). The markdown files are specified in the variable $document_list. pandoc --from=markdown --wrap=auto --to=markdown $documents_list > output.md In the next step I create a PDF: pandoc -f markdown+table_captions --pdf-engine=xelatex --listings -o output.pdf output.md What I want to do is to filter out certain markdown files in the first step. The filter shall be based on a list under a specific category in the markdown file: ### Group(s) Category1, Category3 E.g. if *Category1* exists in the markdown file I want to filter the entire markdown file out. Do you think I could achieve this with Lua filters? Thank you. / Henrik -- 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/2dcd5988-9b74-47a9-80bd-ce4a64fee169n%40googlegroups.com. ------=_Part_2525_870513581.1599651199462 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I have a number of markdown files tha= t I concatenate with Pandoc. Each markdown file has a second level top head= er (##). The markdown files are specified in the variable $document_list.

  pandoc --from=3Dmarkdown --wrap=3Dauto -= -to=3Dmarkdown $documents_list > output.md

= In the next step I create a PDF:

  pandoc -f = markdown+table_captions --pdf-engine=3Dxelatex --listings -o output.pdf out= put.md

What I want to do is to filter out certain = markdown files in the first step. The filter shall be based on a list under= a specific category in the markdown file:

### Gro= up(s)
Category1, Category3

E.g. if Ca= tegory1 exists in the markdown file I want to filter the entire markdow= n file out.

Do you think I could achieve this= with Lua filters?

Thank you.

<= /div>
/ Henrik


--
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/2dcd5988-9b74-47a9-80bd-ce4a64fee169n%40googlegroups.= com.
------=_Part_2525_870513581.1599651199462-- ------=_Part_2524_420011890.1599651199462--