From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29762 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pum Walters Newsgroups: gmane.text.pandoc Subject: Skip inlines that are also captured in other constructs such as Quoted Date: Sat, 11 Dec 2021 07:41:06 -0800 (PST) Message-ID: <55a93bab-31ed-41a2-bfd1-bcad213154f6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1118_153281640.1639237266968" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17186"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC657GFMTILRBFEN2OGQMGQEYWGKUQA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 11 16:41:11 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mw4Uo-0004G3-4f for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 11 Dec 2021 16:41:10 +0100 Original-Received: by mail-ot1-f58.google.com with SMTP id v13-20020a056830140d00b0055c8421bd62sf4081087otp.15 for ; Sat, 11 Dec 2021 07:41:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=mtfaWbJFMqQCvgZD5SmtIITMYpil36UACLPTUxnnTJo=; b=kb5s9nGRyHidkAyFRa2pux8QcyeH2Ab8E3tGMM3RR24dvCywWK/h42Y5QipO+u6zqm yWTeeqDIjL3hnNRkRKgxLG63gk6VIgwHbdw+KxCjRYZJcKGrTPeWnbEBEpxqBvwwEn3k 7voshLn+mHpYYkReTQZYT0Fx7fnhRTCBK3gTjEiLFi6Qj5d/MPq9ejnnvn3efyaPyECi MwU5vd1IKDBERaofnZ0+O1RzT+dfGPBYLFHR3M5yr7NyO6hbIvinRQG+g+clIsiIKMJU +kVyadup8IQeoVVwvfamiCgOu42W9AdllPAxujYEmEFJyX0xHcZMSe6AegAzZWyKMXFo s0Og== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=mtfaWbJFMqQCvgZD5SmtIITMYpil36UACLPTUxnnTJo=; b=CdwEFQCRPcZVuKK8Rai4+/wQb5uQvvh5hf2Xfiv1AHMSgxMkvKJx+9gVxtj9+lmIb5 rFe8J45n0z8oq2msJzFojBe1fvHEAGkz5K5GTXBnnMfq9qimmS6NXpwyQH8iDp2ObNVj Z8iIbISHZokQ/xOucHJ1puk2OBhxg/i7wQGoLtvhzUZSb4e06509NQnLZNYo6s8ogWSP MeMqIsnjMb9+AoYx1ZIdOjggAjdNJFHwam49Ajtg5Egwg3ljEID5z0GENQUa5+sewlXt 4AgcOraUkrCT92w8wyfwfBI5jdcIyiTY+VvcmN5Rm+T1Y/S6OCkZmTz7ALUla96mJEDq zT/g== 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: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=mtfaWbJFMqQCvgZD5SmtIITMYpil36UACLPTUxnnTJo=; b=wx1urmCd6zkSv4nFikP27gjmhECd5JOUput+YlA9Zno1Du/XV1xC6m2ULGyBvIMI6a DuQeYn2sayk3uIn65g/5H1DI/v23e1lOZc//iPw/v5Zno7UIlDsSQHc4NZZzZSZ3UeHQ sJqiahRKe/xPgyPqR1HRXCw+n2aXsw4sS7LWmf6m7QzzfeY3CqcXJ/Fyv6te5Xt9h7jU xDv6SbppmT5Uyr8R/idXR7TB+z0ZohwqTm8M8yTgOoZ2eBv5+VsvJPtooct9DCB47WV4 SazFMY2sQCXFxZvASkGn9CfGDHpZ1aOF732DsWgWlHXxArYOX0IGk2Bjzow96RQckbt4 rD0Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531F73qlztUF8J8dpyqWjOImy56O5GMQJkytcKTrHmrvbF68/04I 5hVw7ywo6CTR2/L+sfCVeA8= X-Google-Smtp-Source: ABdhPJymT32gr6H4u0w5SLFDb7WlqwTkSg89FMDvFUdBDK54eN3jgSU8RDvCzYCSG66meaNXXsVSIA== X-Received: by 2002:a9d:6f13:: with SMTP id n19mr15816749otq.317.1639237269078; Sat, 11 Dec 2021 07:41:09 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:90c:: with SMTP id v12ls3119067ott.2.gmail; Sat, 11 Dec 2021 07:41:07 -0800 (PST) X-Received: by 2002:a05:6830:1dab:: with SMTP id z11mr15723226oti.103.1639237267515; Sat, 11 Dec 2021 07:41:07 -0800 (PST) X-Original-Sender: pum.walters-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:29762 Archived-At: ------=_Part_1118_153281640.1639237266968 Content-Type: multipart/alternative; boundary="----=_Part_1119_1206035413.1639237266968" ------=_Part_1119_1206035413.1639237266968 Content-Type: text/plain; charset="UTF-8" I'm writing a filter to process Hugo 'shortcodes' (templates) which typically look like {{}} 1 eqnc(N,ok,eos,eos,Cc,Id1,Id2,L) = lst(Id2,L); 2 eqnc(zero,ok,str(C1,S2),str(C2,S2),Cc,Id1,Id2,L) = eqnc(zero,eq(C1,C2),S1,S2,Cc,Id1,Id2,L); ... {{}} A shortcode can have zero or more arguments and a body; the arguments may include quoted strings such as above. Currently I capture the arguments and body to be processed at the closing tag. The constituents of the quoted string trigger `Inline` ('linenos', '=' and 'false'), and after that `Quoted` is triggered. My current attempt is to store all inlines, and to drop them when Quoted is triggered. But it seems weird. Is there a better way to skip the all constituent Inlines? -- 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/55a93bab-31ed-41a2-bfd1-bcad213154f6n%40googlegroups.com. ------=_Part_1119_1206035413.1639237266968 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



Is there a better way to skip the all constituent Inlines?=

--
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/55a93bab-31ed-41a2-bfd1-bcad213154f6n%40googlegroups.= com.
------=_Part_1119_1206035413.1639237266968-- ------=_Part_1118_153281640.1639237266968--