From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32366 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Special role of the 'section' class when generating HTML? Date: Mon, 20 Mar 2023 16:53:36 -0500 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002b076a05f75bf638" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30924"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBB3VL4OQAMGQEKFIF7IY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 20 22:53:55 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f183.google.com ([209.85.208.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1peNRz-0007lE-4F for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 20 Mar 2023 22:53:55 +0100 Original-Received: by mail-lj1-f183.google.com with SMTP id p20-20020a2eb994000000b0029ba2ce7447sf1831888ljp.4 for ; Mon, 20 Mar 2023 14:53:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679349234; cv=pass; d=google.com; s=arc-20160816; b=ORzIeIT3/ZWvdK7Woh02HS4iOUw9Jb3zv6DOiPHVW8MkLaCewp02mQI4S9CNRz3sA1 +g7HjQBSme/TVU28cxZyTt7rfHN6TbcMrPEO2ajqcNq5Da/FXBu89pUc1a1YuwyEHt4A ZJRFwCSHZBGTbke9KRCHU6W8eO6dlNTDW8gP1JQEr1MUUsVKakc9oOHdTTVdM6pnZnNu eImaB+qAsQdK2XULtsVLcld7NHU5JGGC9Zi4l9wlD0gPxcsYAa87CuWQ+aXt7CebSzKd KRC+kpfT9E+z/8djZ59CUlypIBB3XZnB2AXeuFIQ01JQQtqnQJrgCTPJUXhtMAeiCRb8 +oJg== 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:mime-version:dkim-signature; bh=GBxkOFm2JvmmpxyV7FIpe1CpoODnQtr2Gdb3eCewMk8=; b=VM8iiJU8VHB1kU/z96gMxcwiCMyu8a7VYt0TFNqzRa32J8JxzlD/mCG2+lJx66l29Y 3+S40fqOPCkSSFnn8i4Ghwo/cCGyNxEQ8Ng+jPcvHbAWSxR+24yvJ61D3wEotO93inzX OJiEWYwpw2ih3YZlHJQc/G4nNahsBw/HG6hzJjSXXxgZKU8sg3FJVk7EIlmHdXBgadEr SZG7vM0nNp1VwASzFmnXnYM8OWe5RpDhsh+7nvTKIzmxrCsFL9vGMYTwxGltwAlpRVrz bzFOfha4Unho/BbBlnxn/Uxh8xsvVC00aIcfPAUwa/f/kNcIv6j8+VYioK15DvUG9/Tz m5ng== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=ex3tA5kj; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1679349234; 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:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GBxkOFm2JvmmpxyV7FIpe1CpoODnQtr2Gdb3eCewMk8=; b=DOIJ4Rct6TjVmGHnQ1CWuHEN+P4IZ8xqb6VXvIk1LgsFp2pBuIEV92kBkDVdOy2UXp VWijyvEnj0t7tEqR6JDo1f6IU5sL7X+p1I/UqwHu/0ifCdoIisZ1R8ny3JFx+o24wHL0 xL6M9QDazKoNxXwGvHRnFi4+5zIq2Jc/MKnxQ5TAvNNEOzl8Ihk7qIl5WWDsVQlWWDmb a6LbYOiNifd70i8ll7ADz/CrZWUqamrUiLhMrmdJBFeFpKb8RuzDtFRAnrpxrnJ7JaQe zoC2NMj2cOJqWqfxo9TIT6z72CoI1lBcORDlQGmKzm/OTE/uPdDtCBzIIVFKt/v0gVd9 owUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679349234; 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:to:subject :message-id:date:from:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GBxkOFm2JvmmpxyV7FIpe1CpoODnQtr2Gdb3eCewMk8=; b=3IjJ7MSj9WJMh6fs0H77UpYYV11C7Ogc9besfwdJVFRAAfp7QDQQv6aZdHjuLCqAFv 9lkQwEdGG6Rj9mkgL1vqbbunkmnffdNu2Q9H6tLBVp3ct/uXlXNYxqR10Jd0shp9QL0N Zl/xmEZVr2vvSyopFULzYV/Kv19q//rle3kQ2KLZxwSnjh9F9s5EQ3R7kbgcblxqY0OL 0RVwr+op1mg/HA4FcNd20icRNzFQhb82k5jHATCWIfH0Z9Vv2oMo72WdZ8Q2WXLHpNzs EYV8BXrw6HpHeUFjHIvT13udaSg5Fmo67JJtDP/OwjVXwFROrGCS1nwAmKjZR5NIjA+Q X-Gm-Message-State: AO0yUKU0obZgYrFbwr+e2iR1xVugA8uVaBAJO7EehZGPDuSHCwfoGzZn DSR4M4oUmoe8BYWwVZNeZGY= X-Google-Smtp-Source: AK7set+OhQ7hUGpb9h+JngI+e1Wg6o89YBgiJoWQc8L20uTS/6jjP7g3YjOegaGPAU8GMQTxCGmzBA== X-Received: by 2002:a2e:b0c6:0:b0:29a:371f:fba0 with SMTP id g6-20020a2eb0c6000000b0029a371ffba0mr215706ljl.6.1679349234560; Mon, 20 Mar 2023 14:53:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:4013:b0:4e9:c006:ce26 with SMTP id br19-20020a056512401300b004e9c006ce26ls1447226lfb.3.-pod-prod-gmail; Mon, 20 Mar 2023 14:53:48 -0700 (PDT) X-Received: by 2002:a05:6512:218f:b0:4e8:c5d:42a5 with SMTP id b15-20020a056512218f00b004e80c5d42a5mr130133lft.24.1679349228825; Mon, 20 Mar 2023 14:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679349228; cv=none; d=google.com; s=arc-20160816; b=Dzw8vtbpcXbPLeuUPihQzgUaNm1GsgLsUY3UrkQ7pqFSFd9Uk7Pho7xGaRbTvR/zA7 xW6AHWdEbojdNb/huAAxsRUQoPEJmJeEC0xEOqxBVqDlga9zW1UO4xGIHufQSGHGOrlb 0WoEBD+LWfUJFYPF3swPONAduSEobt3Pd+HH/I1fw7snp2yjqSIiDFeI4dItPxrmEfjb BvZbKNol4XzELxxQ++GfGLC8LyrQUHiyDMpES7xRJjjrpXMLvzZAzxKC+Zhg2lEpswhV i90HAZTb83Vh1xuxOvwZDy/rxbGKJFx3Q9GF1eSueeJ8omb+0mnNr4I2FDx/IGH3KwC2 EOHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=IBnxHMQo39sB1pqXvrp24hFSLD4sxeJ0/cAVnU//HXU=; b=0EA/Tufak4gh2iSAKvzDNovfC8C/BoUi3aE3nZ9IFcwaU32kpY2SzG+bIOB5AlW4b7 rM5gN0iOv+HZkKlRy5jOQX7pUKJj+zr6qlYugLU9AKie1jJwbFamwLs4OuwVlaj3V2+G y9RPPRXZdjax+j/U8itMzdsyLPGod34Sy6+Io+d/VY3br83kvk/jvTI0+ctYCjXXu0Mz 7kmDNpNWlrFPUxjpAlXpCfFsHTxrHyf/cEISoR+BOdJZmLOlSFQPFdg56HRG4seZXf7T F/Y8wHOWivv8Gkn9kpAl0avg/riMH+n9AhAciM3swiyoe2R8dXkC8X30d7kAl8go4ehf voRQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=ex3tA5kj; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com. [2a00:1450:4864:20::52f]) by gmr-mx.google.com with ESMTPS id b9-20020a056512304900b004dbafe55d43si171605lfb.13.2023.03.20.14.53.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Mar 2023 14:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52f as permitted sender) client-ip=2a00:1450:4864:20::52f; Original-Received: by mail-ed1-x52f.google.com with SMTP id y4so52576758edo.2 for ; Mon, 20 Mar 2023 14:53:48 -0700 (PDT) X-Received: by 2002:a17:906:f2c9:b0:92b:ec37:e4b7 with SMTP id gz9-20020a170906f2c900b0092bec37e4b7mr282285ejb.14.1679349227643; Mon, 20 Mar 2023 14:53:47 -0700 (PDT) X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=ex3tA5kj; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:32366 Archived-At: --0000000000002b076a05f75bf638 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear all, Please see the "try pandoc" shown at the bottom of the message (markdown and HTML are shown below). It seems that the 'section' class must trigger some special HTML writer behaviour? Any thoughts? Thanks, William. PS, Ideally I'd prefer these divs not to be converted to sections, but I can live with that. ::: section ::: # A The div and its 'section' class seem to be ignored here. ::: ::: section ::: # B Adding a comment fixes this, but the id isn't propagated to the section element (and this header isn't in the ToC). See < https://github.com/jgm/pandoc/issues/8518>. ::: ::: xxx ::: # C Alternatively, can use a different class name (apparently anything other than 'section'?). In this case, the id _is_ propagated to the section element. :::

A

The =E2=80=98section=E2=80=99 class seems to be igno= red here.

< section>

B

Adding a comment fixes this, but t= he id isn=E2=80=99t propagated to the section element (and this header isn=E2= =80=99t in the ToC). ref. https://github.com/jgm/pandoc/issues/8518.

C

Alternatively use a different class name (apparently anything other than =E2=80=98section=E2=80=99?). In this case, = the id is propagated to the section element.

https://pandoc.org/try/?params=3D%7B%22text%22%3A%22%3A%3A%3A+section+%3A%3= A%3A%5Cn%23+A%5CnThe+%27section%27+class+seems+to+be+ignored+here.%5Cn%3A%3= A%3A%5Cn%5Cn%3A%3A%3A+section+%3A%3A%3A%5Cn%3C%21--+--%3E%5Cn%23+B%5CnAddin= g+a+comment+fixes+this%2C+but+the+id+isn%27t+propagated+to+the+section+elem= ent+%28and+this+header+isn%27t+in+the+ToC%29.+ref.+%3Chttps%3A%2F%2Fgithub.= com%2Fjgm%2Fpandoc%2Fissues%2F8518%3E.%5Cn%3A%3A%3A%5Cn%5Cn%3A%3A%3A+xxx+%3= A%3A%3A%5Cn%23+C%5CnAlternatively+use+a+different+class+name+%28apparently+= anything+other+than+%27section%27%3F%29.+In+this+case%2C+the+id+_is_+propag= ated+to+the+section+element.%5Cn%3A%3A%3A%22%2C%22to%22%3A%22html5%22%2C%22= from%22%3A%22markdown%22%2C%22standalone%22%3Afalse%2C%22embed-resources%22= %3Afalse%2C%22table-of-contents%22%3Afalse%2C%22number-sections%22%3Afalse%= 2C%22citeproc%22%3Afalse%2C%22html-math-method%22%3A%22plain%22%2C%22wrap%2= 2%3A%22auto%22%2C%22highlight-style%22%3Anull%2C%22files%22%3A%7B%7D%2C%22t= emplate%22%3Anull%7D --=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/CAEe_xxi3kqeN-Mnh39FmHDW8wCxEw7cH8LiGB3ubyvWGPPSwHw%40mail.g= mail.com. --0000000000002b076a05f75bf638 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear all,

Please see the "tr= y pandoc" shown at the bottom of the message (markdown and HTML are sh= own below). It seems that the 'section' class must trigger some spe= cial HTML writer behaviour? Any thoughts?

Thanks,
<= div>William.

PS, Ideally I'd prefer these divs not t= o be converted to sections, but I can live with that.

::: section :::
# A
The div and its 's= ection' class seem to be ignored here.
:::

::: section :::<!-- -->
# B
Adding a comment fixes this, but the id isn't= propagated to the section element (and this header isn't in the ToC). = See <https://githu= b.com/jgm/pandoc/issues/8518>.
:::

::: xxx :::
# C
A= lternatively, can use a different class name (apparently anything other tha= n 'section'?). In this case, the id _is_ propagated to the section = element.
:::


<h1 id=3D"a">A</h1> <p>The =E2=80=98section=E2=80=99 class seems to be ignored here.</p> <section> <!-- --> <h1 id=3D"b">B</h1> <p>Adding a comment fixes this, but the id isn=E2=80=99t propagated to= the section element (and this header isn=E2=80=99t in the ToC). ref. <a href= =3D"https://github.com/jgm/p= andoc/issues/8518" class= =3D"uri= ">https://github.com/jgm/pandoc/issues/8518<= span class=3D"gmail-hljs-tag" style=3D"color:rgb(36,41,46);font-family:mono= space;font-size:13.3333px;white-space:pre"></a>.= </p> </section> <section id=3D"c" class=3D"xxx"> <h1>C</h1> <p>Alternatively use a different class name (apparently anything other than =E2=80=98section=E2=80=99?). In this case, the id <em>is<= span class=3D"gmail-hljs-tag" style=3D"color:rgb(36,41,46);font-family:mono= space;font-size:13.3333px;white-space:pre"></em>= propagated to the section element.</p> </section>

https://pandoc.org= /try/?params=3D%7B%22text%22%3A%22%3A%3A%3A+section+%3A%3A%3A%5Cn%23+A%5CnT= he+%27section%27+class+seems+to+be+ignored+here.%5Cn%3A%3A%3A%5Cn%5Cn%3A%3A= %3A+section+%3A%3A%3A%5Cn%3C%21--+--%3E%5Cn%23+B%5CnAdding+a+comment+fixes+= this%2C+but+the+id+isn%27t+propagated+to+the+section+element+%28and+this+he= ader+isn%27t+in+the+ToC%29.+ref.+%3Chttps%3A%2F%2Fgithub.com%2Fjgm%2Fpandoc= %2Fissues%2F8518%3E.%5Cn%3A%3A%3A%5Cn%5Cn%3A%3A%3A+xxx+%3A%3A%3A%5Cn%23+C%5= CnAlternatively+use+a+different+class+name+%28apparently+anything+other+tha= n+%27section%27%3F%29.+In+this+case%2C+the+id+_is_+propagated+to+the+sectio= n+element.%5Cn%3A%3A%3A%22%2C%22to%22%3A%22html5%22%2C%22from%22%3A%22markd= own%22%2C%22standalone%22%3Afalse%2C%22embed-resources%22%3Afalse%2C%22tabl= e-of-contents%22%3Afalse%2C%22number-sections%22%3Afalse%2C%22citeproc%22%3= Afalse%2C%22html-math-method%22%3A%22plain%22%2C%22wrap%22%3A%22auto%22%2C%= 22highlight-style%22%3Anull%2C%22files%22%3A%7B%7D%2C%22template%22%3Anull%= 7D

--
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/CAEe_xxi3kqeN-Mnh39FmHDW8wCxEw7cH8LiGB3ub= yvWGPPSwHw%40mail.gmail.com.
--0000000000002b076a05f75bf638--