From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29128 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Singleton block construct with attributes? Date: Wed, 25 Aug 2021 18:33:00 +0200 Message-ID: References: <066d8f5e-ede0-4705-9f38-4add41cb7ff1n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004b95e705ca64cea8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36500"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBR7BTGEQMGQEJ5U7BNQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 25 18:33:15 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f56.google.com ([209.85.167.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mIvpy-0009Fm-Ll for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 25 Aug 2021 18:33:14 +0200 Original-Received: by mail-lf1-f56.google.com with SMTP id u17-20020a05651206d1b02903c76e2b62a3sf25214lff.10 for ; Wed, 25 Aug 2021 09:33:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629909193; cv=pass; d=google.com; s=arc-20160816; b=CncQw4TMrQVIHxLYf9H7Q/1NjNQSWhUjJ0HcEvgw1V/W4McJocARMKgzQDOJeelQPE REEAzBp5VJW3TaRGFoDL44K9cSh6zSOrH0EnxPiy29GL66ypOtvwz5VO8MR7oXZx70xn PLzMMewTFdU4YoZzBNGi1vsNeCpZB+FXnwFHxAYFzAsl2XDjT2EyPYN1+6gsYq6+82qP K95TnvlWZGt55FWKBFg5nynZIKNrYN78ZCYHTBj+ePgaooNqKjh5WXJpM4bpzr+TwNej NKvfGN+0BjuN8nZpThUqwJYPmzcZl9lq4EThRBw+6M/eVdCadG04OrjQC7VNdq2tYpNx s2PQ== 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=yRQyTwG4aO/gbFcoIP3L/Bi/0zfF31WvaY92e32aHss=; b=gSlDY+KqVssPbXMTdgTlmGFvnC3iUMZxQZdk56xLHIVnRwBr1o4NWPzlgX0pCldMqK R95RETnhQjkqEmCxJkQsGW5X+SqvpWNw9XkEjDoMLqCzL22Ki7FDJsnrKfigfnZ7QwOT 3me2g9Vwj7M+C/wTjkrPxNEmUdBtlM2jY7r86x6yEbatbzPAvPF9z05Gj5KRK/QShEXo rGOa+3Z2UbrASGs4b1mZEzDKHAfd3Fwap0FIH74K/r/36ZxNIr8C1XTwN9d8RE0HkAkA TIEJALKrgp73bVHe69kLaSsE9OvMzIvM4F+15SXs6T45CqQmeSY5JOx56FeRO5NvRfSP 8AEQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VzgHg0bL; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::236 as permitted sender) smtp.mailfrom=melroch-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=yRQyTwG4aO/gbFcoIP3L/Bi/0zfF31WvaY92e32aHss=; b=ksxgBK+ufpDpS0W75YcBwdM0wcjwKkyFQOXb49HKzeXh/QWSsonyRUQ/JJTRuBbE36 uUku5bzX7Bz9OzLRN9faAWOfHBQj0PnyUvaKOQlxLJZJvlxOlNv6nQgofZQ5Xsaw0Skp yO+aGNoNATYhCSpGajiOsuroSWkRvHG9nns1XugRztc9BLpxRCZpr2Ke7btnA7rknov2 LjYC3pA3jn9vEAv3a2PdqWp73ZYCF5qnEOQ+9H+OauT82pmkyw0aM4IhirMaomj+OySA 1aaGeyzFUWaeaYHhXqC3W7HtwvDSOynKD7qI0j7yA4KVt2UDjnoIrp0eFcwdTPSUv4Ua Libw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=yRQyTwG4aO/gbFcoIP3L/Bi/0zfF31WvaY92e32aHss=; b=dhXck2SPMKfR47wzl8yi0udNPDdbvXyGI/11g4+fHfjbsQ59aqFW96fSefzr85ptak kgLnOMQETXc9/824eUsAtsRUxI1FDr6AHMuW5m1QfWSNASJiGOLk+F05lJJbmJKoxyq9 0EX862+XpWnB5vrPdxIvVCUO66ZTHsM8BrVKpJSr6cWtxFyUIlq4qL/391Eu8vP57y4v aX1bhPXqohrsfWn35vBp+2xZKpAVYg0vpqvcxEvu+Hv1mEruC1xinLXvrc+w+wPY/qT2 4rPopXYWm2dwk2V+XdM5ama+xA3CgR1oiV6OOj2yUGzJHBT+5AFAbkk9QRiL64OWlqI4 KSKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=yRQyTwG4aO/gbFcoIP3L/Bi/0zfF31WvaY92e32aHss=; b=JeJX/b9vF/JPkCblkQMRlpGRnPVAE3wrybCIb9QLIyaTdqul9oCI5PY0Q22aVtyoIs Qj5wvWjwlPER4JWXPeWqtoFbb13RON0IZz6f3KMBJpJL1pAXxrOTbtOf05jMpZodDt1p XpR/zQ9rLQIehX8CG6jXPSUaog2IouwqRFyXJRLiwBm8DAq1lm556V6KQ6AzmgIDe+b9 3GpHHzlRCiSMo08VpGtJbaer+fIhg/PX3HLtm94kRo1kf4mcs6P+Ih6Tk6TBmGHqJTkm dmBd8CLxd2ASADgQtxVzGjzk7NHNV1OnE05PdD+v96ecN4S+0RB3WSYTMI9V0pc9ZsKv 3C/w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533r17hCvba+1raRW1GPI93DezdqOBjStZTtbFEdyNm8SlgASMMb QlJ1X0K92s7ZsUDbZxz+Y3A= X-Google-Smtp-Source: ABdhPJyOb1Zv6lnRAaVcuDnvYnrh93VqaVAbvUQ2Jp8b1sSy+t/PEuLs4/qGvuOnqMu3uW7//7xCJg== X-Received: by 2002:ac2:4f8f:: with SMTP id z15mr32209947lfs.361.1629909193724; Wed, 25 Aug 2021 09:33:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:4146:: with SMTP id c6ls2021197lfi.2.gmail; Wed, 25 Aug 2021 09:33:10 -0700 (PDT) X-Received: by 2002:ac2:46c1:: with SMTP id p1mr32562479lfo.469.1629909190518; Wed, 25 Aug 2021 09:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629909190; cv=none; d=google.com; s=arc-20160816; b=vdvJ1JxOVCHa4AP/cLFnyBJsja+obCzOzJ7J89bLEECNQvHDfdMvuh3OCyivEtRFMy FSMNnoWVNo+2KCKbicUNFb6OeB4uljfeIvl0XF2YiC2xofqfuafq9XChQaYKBfK76XmC rmyJWsEJjPsjX8yMHOpQrm0T3Hu7yR5RiUOHY0NATm+L4I4seivIpkAiMf3qEixvtJAM xGRA+vGNbiQqpSjZA9xjmlqcnAQa93KS0QQRy2HRSYfrsBztfPuZyUsNKb/nPEBA4J5T 4B+sU7rL2J9HBvrKT/a9Owsn+JnJOZIhDXy2ZPUCmhwQE04AKLx97wa/WZ6UEfsByzH7 Ujcw== 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=K0UbJniwyBGMpEUSZICPjwDNshlVVY3+UlQ+/GDgoGM=; b=vK2+v6KEGBry9ScWgRKiJo1ZcW3uh2o6ZQmJiIqmE9aEvzIMbY0CShxyus2qo/se5b 2WhTWr7E+pbCTvQvH7xutmaQ7OABtWDJQ969Jwx7UgD8ei6YMU9SHO/G943WqzzOb7PW B9nXaHm1EXr7+r5L0l/lQXfigjwz27fQiWTVyTjzHVqdxC05mQvneyvbP2K7a+saNhdq 2FII3K2wcG96VbwDeD4gvOIGdjByfDyckjf4Ljkmk6wGl1v5YAC5p70v1nOQKj81VwrN TUp44qtJ91i+kFMlD1ZL72dXJGkm8TRUn9siXJgHaKaf7QIA3Nla6tWidw6mZIMc6EE1 pPoA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VzgHg0bL; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::236 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com. [2a00:1450:4864:20::236]) by gmr-mx.google.com with ESMTPS id h11si18653lfc.4.2021.08.25.09.33.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Aug 2021 09:33:10 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::236 as permitted sender) client-ip=2a00:1450:4864:20::236; Original-Received: by mail-lj1-x236.google.com with SMTP id s3so44623387ljp.11 for ; Wed, 25 Aug 2021 09:33:10 -0700 (PDT) X-Received: by 2002:a2e:b5ae:: with SMTP id f14mr37551713ljn.170.1629909190152; Wed, 25 Aug 2021 09:33:10 -0700 (PDT) In-Reply-To: <066d8f5e-ede0-4705-9f38-4add41cb7ff1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VzgHg0bL; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::236 as permitted sender) smtp.mailfrom=melroch-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:29128 Archived-At: --0000000000004b95e705ca64cea8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable When I need a marker like this I use a code span, like `--pause` ``````lua -- Look for a paragraph function Para (para) -- With only one child if 1 =3D=3D #para.content then local child =3D para.content[1] -- Which is a code span if 'Code' =3D=3D child.type then -- Ignore it if it has a class .code, i.e. `--pause` is a marker, but -- `--pause`{.code} is "actual" code. if child.classes:includes('code') then return nil end -- If it is the marker return some block content if '--pauae' =3D=3D child.text then return whatever() end end end return nil end `````` Den ons 25 aug. 2021 10:24Axel Rauschmayer skrev: > For two filters of mine, I=E2=80=99d like to use a singleton block constr= uct that > triggers them via a class. I was considering using a horizontal rule: > > ---{.pause} > > Alas, that doesn=E2=80=99t work. What is a good alternative? If there isn= =E2=80=99t any, I > can use the following syntax, but I=E2=80=99d prefer something that fits = into a > single line. > > ::: pause > ::: > > -- > 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/066d8f5e-ede0-4705-9f38-= 4add41cb7ff1n%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/CADAJKhCHPhqJz_8b8EikbNoh_Ytyn5iPefS3cvkQA%3DtjD94nMw%40mail= .gmail.com. --0000000000004b95e705ca64cea8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When I need a marker like this I use a = code span, like

=C2=A0 = =C2=A0 `--pause`

``````l= ua
-- Look for a paragraph
fu= nction Para (para)
=C2=A0 -- With only one child
=C2=A0 if 1 =3D=3D #para.content then
=C2=A0 =C2=A0 local child =3D para.content[1]
= =C2=A0 =C2=A0 -- Which is a code span
=C2=A0 =C2=A0 = if 'Code' =3D=3D child.type then
=C2=A0 =C2= =A0 =C2=A0 -- Ignore it if it has a class .code, i.e. `--pause` is a marker= , but
=C2=A0 =C2=A0 =C2=A0 -- `--pause`{.code} is &q= uot;actual" code.
=C2=A0 =C2=A0 =C2=A0 if child= .classes:includes('code') then
=C2=A0 =C2=A0= =C2=A0 =C2=A0 return nil
=C2=A0 =C2=A0 =C2=A0 end
=C2=A0 =C2=A0 =C2=A0 -- If it is the marker return so= me block content
=C2=A0 =C2=A0 =C2=A0 if '--paua= e' =3D=3D child.text then
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 return whatever()
=C2=A0 =C2=A0 =C2=A0 end
=C2=A0 =C2=A0 end
=C2=A0 end
=C2=A0 return nil
end
``````


Den ons 25 aug. 2021= 10:24Axel Rauschmayer <rauschma@g= mail.com> skrev:
For two fil= ters of mine, I=E2=80=99d like to use a singleton block construct that trig= gers them via a class. I was considering using a horizontal rule:

<= /div>
---{.pause}

Alas, that doesn=E2=80=99t work. What is a good alternative? If there= isn=E2=80=99t any, I can use the following syntax, but I=E2=80=99d prefer = something that fits into a single line.

::: pause
:::<= /font>

--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/066d8f5e-e= de0-4705-9f38-4add41cb7ff1n%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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhCHPhqJz_8b8EikbNoh_Ytyn5iPefS3cv= kQA%3DtjD94nMw%40mail.gmail.com.
--0000000000004b95e705ca64cea8--