From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31275 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Styling bracketed spans and fenced divs: "style" vs. "custom-style=style" Date: Wed, 24 Aug 2022 12:08:39 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000017ff3305e6f9de1f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18160"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBNHRS6MAMGQETVSLVLY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 24 12:08:56 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f61.google.com ([209.85.221.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oQnJg-0004bl-70 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 24 Aug 2022 12:08:56 +0200 Original-Received: by mail-wr1-f61.google.com with SMTP id k20-20020adfb354000000b0022556a0b8cbsf1464729wrd.5 for ; Wed, 24 Aug 2022 03:08:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661335735; cv=pass; d=google.com; s=arc-20160816; b=ifRl+L7BfOu7uMUjs8dclXa8xQQbBcNASPzQF7jUfmsrgUlHdshh6FtGi1/MkMt11V ix4cVg15VJNVkhOev1eXAcm/vPxpRyDNdXRW4G6FqA5rIpiez8iEnXum6Wj4Zhmk5M6u b95zuyhmKprnL6eYD+QVfRXCemy2Z+JfOKYvIWdMt2eB9zpsD7FOgkcEsLcokAmzFRbK +eUF4X4YK5zP9KAqc9yuh9D9MmSnz+wLurR3PgrfySxBYhk8ZSbyQ0rYoMVLof/bf6p2 N3Z1wu1AByZiGGKD4pv2tQbNhMOxYcTWVWf5Nqnb4015mNLVZ91FaYzP8iDFMYuZlKLw Js9A== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=YqNz8xoWLdAGhu+VKxgVESEFT+jNDUTLBb44lceOkag=; b=0gFpEgxiVb9JiQK3VVhi4XF/N21EBGjcKO1OdEu5Odm1SY4v6XbWI9bXi3nJ53MWu3 M4a0VvpGKUhDMN+5xrVq7qR6cLUm4dr2wCbfaewM6rTXO4Ia8mDa73ikvcXGlMJ/Uskk CnG+BZ/tdc11OdQlb30K10486VEhsL/3f6TAcL5OYPd03INl1ptBdhGs1O4Mm7l+FxC9 YA4OZ7Ls8ndZImMTFQ1PqrNnm/2uSHROLhl8Xk8DIoKKvkJ2Iq622RyWdoCMTTn79C/U heBoRQMdGeSGuLN3N/9Vtw/IUT2d2PxDvmrUuMDmqbsyWxCXOg5TwLN1se81ar/L1+DT NtVg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.41 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:sender:from:to:cc; bh=YqNz8xoWLdAGhu+VKxgVESEFT+jNDUTLBb44lceOkag=; b=eW6eCkQ/m+/U3H+dd6l52wKty25Nr/2rls9KhnpkIzF7lf9oZsIscJMen6m7PV7UED qG39JvsedYChCrOV1tcsy3LmUg11DeoiZRXLnkttnwG219bF0rBvjtgDrrsAOfGY86ZN AXsZBtIHBKelOORpLIqFKeTYr0a2kafY8XiG17jWjaLChpn7oIGxhm01Aq5BEvJ4EoZ9 0vik2J1UJwxS4kdxtLl4NKugJvcuEBL84jaPGhILdF1uIty3yzalPUiBBuELTYz9sx6A bVhMnkk2VRQXQR35VVqNH8WZLM1crxt32hYi0sBmqSOLQuxH720j/JeGBP1zwbKXe03O m3tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc; bh=YqNz8xoWLdAGhu+VKxgVESEFT+jNDUTLBb44lceOkag=; b=Y5DVGIESNHvUMWSnOjcVcD3gnZ2zm0bwuW/MUiAwGJ+Hwmpg9br1tLa8W1OOAjWTTj LyndGrm3pEAel6JnoScPq+2/ivOUecLcV53K0NrA/44vw6tt7Ntqhex554CI0aK+gVMd 2hXmryUNCoEPIxdqwGg/kdV/4Z93DeaU5NZ5QWxi1MG1YkA9K8COT4RKBduyNZvKgndO FUhicYbAh3u162u+RnRWsfswkiMtWLL4QdqQuW77uoTiIVKmzIchcu/YDuDmT62zbYNq XCWUc24a1Ywax/ljbBGjPqcvbwE0YdWVIDKrvmfvtbY0PPnpBpKYamrUq0xpJd6W867y I3eg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo3n3KYUBiwXkEA5nXamk0ZF0wWLg5w7uf3CJhJQLQsxJRPwWa3/ RDgBc/Kt9gcAUSrkZS3QokA= X-Google-Smtp-Source: AA6agR7AHtdOfM+1ulvz0yYKjbcJuQb8k7sCwv3JqKNPrz7uR/ez/aCbht4VO+5vd6+nDTi4xrU0/w== X-Received: by 2002:a05:600c:198e:b0:3a5:d4a2:8896 with SMTP id t14-20020a05600c198e00b003a5d4a28896mr4563382wmq.140.1661335735783; Wed, 24 Aug 2022 03:08:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:22ce:b0:397:344c:c4f3 with SMTP id 14-20020a05600c22ce00b00397344cc4f3ls5356322wmg.2.-pod-prod-gmail; Wed, 24 Aug 2022 03:08:51 -0700 (PDT) X-Received: by 2002:a1c:7703:0:b0:3a5:aefa:68e3 with SMTP id t3-20020a1c7703000000b003a5aefa68e3mr4922192wmi.158.1661335731663; Wed, 24 Aug 2022 03:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661335731; cv=none; d=google.com; s=arc-20160816; b=yLpY9GBzdjXrZ4Ov0Kj06pYU2ZK04nAxeEqEWmPJWOwCjnml/CFxBStCFuQDP7NyzC +ZSotEqlFnUU/EjJpybEpIXc6UJndWmf7FKzXyuc7th0qrIfYqXwufWOp4bzpCJGZLEY KBCrgbzcj3Ywu+wDwXzUF8s1ibGkGYXJgvJFmhmxA/nLxOHdwlYCobKIczBRVU+KCHJq D/SMIcRQ+2jCE2vzbse3FaNiZYA95ueGtAdpTzkvFoiFBRpgVZ5+AlXpWIYB6prORUfq S8+C1ulo4YB1Hj4fWJAeyh9E1y/ZGozIIsKH2QY6/FCd/gvef6kcP+Tx7hf5UHjmJ6lf zxHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=l9O2QWPgw1DoytRSol5ImikegH/s/104EKCpof9Jhi0=; b=lYJ4kU5aluVZlAZR64jvmaF9ZXZNI+cw+aXlI/xwiHxZ0sU567yiG4ritu37ivQ4ht KGCVfVb1/UrIz9Lv+LdoppZ5lCNenO6SXQWxFYqcRHHf+lim0fCKgL5ARpCO6MYBVvxt ZMUupcC5lDDgTEF+hlUJovTLuBzA87KF1VmvgzBaYcXIWsTJ+Cc+/GlmKZPcg84qk7kj 64eJa63jDUrYh/OyKG4SZPPCRLj7D8njNGLcFDPTmPXSD8S0bbluHn1yjJCf0ImozbRI Cv1m/mMkbDEjnc3DB4wMdcLg3k/bD2ZioAY4vw2tmFxwynBGiUDDyAVH+wJWTsA1sJma gxNA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.41 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com. [209.85.218.41]) by gmr-mx.google.com with ESMTPS id l188-20020a1c25c5000000b003a62e4da7bfsi405152wml.1.2022.08.24.03.08.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Aug 2022 03:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.41 as permitted sender) client-ip=209.85.218.41; Original-Received: by mail-ej1-f41.google.com with SMTP id gb36so32505060ejc.10 for ; Wed, 24 Aug 2022 03:08:51 -0700 (PDT) X-Received: by 2002:a17:907:781a:b0:730:ccea:7c29 with SMTP id la26-20020a170907781a00b00730ccea7c29mr2425906ejc.85.1661335730911; Wed, 24 Aug 2022 03:08:50 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.218.41 as permitted sender) smtp.mailfrom=melroch-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:31275 Archived-At: --00000000000017ff3305e6f9de1f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The HTML-like versions existed before the syntaxes for the others were decided on. (In particular the discussion on the div syntax was long and tortuous!) So basically they are an historical holdover for backwards compatibility. Den ons 24 aug. 2022 11:30name name skrev: > I have just discovered that there are at least two ways to style brackete= d > spans and fenced divs. > > Styling bracketed spans: > > ~~~ test 1-A > [Get out]{.emphatically}, he said. >

Get out, he said.

> ~~~ > > ~~~ test 1-B > [Get out]{custom-style=3D"emphatically"}, he said. >

Get out, he said.

> ~~~ > > Styling fenced divs: > > ~~~ test 2-A > ::: poetry > | A Bird came down the Walk--- > | He did not know I saw--- > ::: > >
>
A Bird came down the Walk=E2=80=94
> He did not know I saw=E2=80=94
>
> ~~~ > > ~~~ test 2-B > ::: {custom-style=3D"poetry"} > | A Bird came down the Walk--- > | He did not know I saw--- > ::: > >
>
A Bird came down the Walk=E2=80=94
> He did not know I saw=E2=80=94
>
> ~~~ > > A-versions requires fewer number of characters, so your raw Markdown file= s > will be easier to read, and also easier to style with CSS if you convert > them to HTML. > > What are the advantages of B-versions? > > -- > 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/edf9f645-82e7-4912-afd0-= d704124914a6n%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/CADAJKhDY%2Bq8x97%3DU%3DmyTjJv9s7wJS6SwFfO74WS3bL6HKbScuA%40= mail.gmail.com. --00000000000017ff3305e6f9de1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The HTML-like versions existed before the syntaxes for th= e others were decided on. (In particular the discussion on the div syntax w= as long and tortuous!) So basically they are an historical holdover for bac= kwards compatibility.


Den ons 24 aug. 2022 11:30= name name <ivan20151013@gmail.= com> skrev:
I have just= discovered that there are at least two ways to style bracketed spans and f= enced divs.

Styling bracketed spans:
~~~ test 1-A
[Get out]{.emphatically}, he said.<= br>
<p><span class=3D"emphatically">Get out= </span>, he said.</p>
~~~

~~~ test 1-B
[Get out]{custom-style=3D"emphatically"= }, he said.
<p><span data-custom-style=3D"emphaticall= y">Get out</span>, he said.</p>
~~~
=

Styling fenced divs:

~~~ = test 2-A
::: poetry
| A Bird came down the Walk---
| He did= not know I saw---
:::

<div class=3D&quo= t;poetry">
<div class=3D"line-block">A Bird came= down the Walk=E2=80=94<br>
He did not know I saw=E2=80=94</div= >
</div>
~~~

~~~ t= est 2-B
::: {custom-style=3D"poetry"}
| A Bird came = down the Walk---
| He did not know I saw---
:::

<div data-custom-style=3D"poetry">
<div class= =3D"line-block">A Bird came down the Walk=E2=80=94<br>He did not know I saw=E2=80=94</div>
</div>
= ~~~

A-versions requires fewer number of characters= , so your raw Markdown files will be easier to read, and also easier to sty= le with CSS if you convert them to HTML.

What = are the advantages of B-versions?

--
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/edf9f645-8= 2e7-4912-afd0-d704124914a6n%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://g= roups.google.com/d/msgid/pandoc-discuss/CADAJKhDY%2Bq8x97%3DU%3DmyTjJv9s7wJ= S6SwFfO74WS3bL6HKbScuA%40mail.gmail.com.
--00000000000017ff3305e6f9de1f--