From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32448 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Special role of the 'section' class when generating HTML? Date: Thu, 6 Apr 2023 15:26:20 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ef907f05f8abb135" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34844"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBGNNXOQQMGQETIKY2ZI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Apr 06 16:26:37 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f60.google.com ([209.85.221.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pkQZR-0008qq-GU for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 06 Apr 2023 16:26:37 +0200 Original-Received: by mail-wr1-f60.google.com with SMTP id y4-20020adfc7c4000000b002d633dc129asf4895229wrg.0 for ; Thu, 06 Apr 2023 07:26:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680791197; cv=pass; d=google.com; s=arc-20160816; b=KR2U4Fl0wxpoLTrW/EVWEB09bRqd/cfWqePJLAi+aST2F6cJ+f7zeADFgrFQJZ9PWh x8z6ys9go+Xt0ZEQpgkobYtD/w/2YTEtsH7p53az2PeRZbnSuTrzWffXRmWFkxQ0NxK1 HD18hktJuXHxLp2NZ0BnqY2fy9l6jtDMHZTHsISrvs7n36RyIA1IJnEvKM35NOSQrSas s/6zV7s075iANJKZdGyYb0KV1K1y5tNXWwpRBvi+/wvnLQghhIakU9Sil4vlfcicq0dI 20igumgSDIr2k5zX8NmEGCHTyiN3L3RZDdKfQSUEz72yGfzxq2cN9PRFeGmKS8TXq8Nv h1Tw== 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:dkim-signature; bh=wtoPx3K4tOHAx5SfMN/WDqGj9ig0O/80OGU/wn+k2+k=; b=EUIHoHlX1NRMAem4icKANFBS7mJla4XrP7BO9ElaoweWHGVfFGLJtGjI8qf1F4Qe6L GSvyKBxZ/ksH2Erqz5xKLMW28ei/y1XfNLzxrV0WbgaBddaJRhZib9EUpTVbdLJyv0Ec tJpFnVMwmJ8322+R8ShDSKUZsHASOt4FIECSHN7FBdYqiMpqT6q9Y1wRYcYEoZUV1e1q Qj7FBJkTtnL7D9vA3llVpRU2tbNFgkU4XECb5KL4RpLE+bl2BywDFcfth+nh8p11etP2 ZKYzeEq0jzfoKh24BU409drjcl7P3Kti8AlOgIqBjTJ/Ou57REVzIe+6zXd2iDAp19t2 lZSQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=NI+9RSAu; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::631 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=1680791197; 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:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=wtoPx3K4tOHAx5SfMN/WDqGj9ig0O/80OGU/wn+k2+k=; b=RX7LEshCsokIa57Z2fHgbWOpjOcMY5hfJtpoa8UyWhsO3kbTXur8o6s+DvtPBd3LS6 gAXv+m+gPwSubBzfzy2s0+wbdGDdrAIgoIHy/vm3ZGWD2o29sEBM3BDpXIHLFbDiVJb5 KgVoOtWpvAfWmPYBDh06lJy3A4nL5PNPjclDg/tfo3D6ny4pRRkYVcF85gONeDzfl0G4 dfCXWtLZNYN0bjJi/ViJO5Vne8LmYpv40T6tfQI96OwcGLraOatUwJVGFr8u6ZHM8Bbp aaYbFErlL7sry2I1NwfBvBp81IhKaqe5OA3IaMEifrWBBkBSLYbOXBfEKW8fjVSY0Ro2 7jBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680791197; 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:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wtoPx3K4tOHAx5SfMN/WDqGj9ig0O/80OGU/wn+k2+k=; b=46cpa8XCRPrOE0/zRIfZmV5jqpS41d1wnqIx0T0AxEVgxc3WDfCazfNsh0pyqk+skz HpcSCLeZATrJGNJSDTGTxLunPLjt7X25FDk+Yjm+uOBs6HBQSBXUCqfWWsbm+B9naHSb hWYX1EEDz2/1ZeOvfK+HxwREuW+qy/TNMUpeCvOt+Gr5DnR4+ZQX7sLXx7HkMbpNEXg/ egwYK347FnDmZFYgJY8gEFK1fjBtk4IdYxZ3qyZ5ysQuyj7k9uE8Cz+ofGK2AwDR6Gfv oE2IoAhVjQ0VQWw7C7M5ZWdyUW6qS/o8vzixS+d8vVwqKrJbY X-Gm-Message-State: AAQBX9cVBVXgRlq18Tg/gf8/Ikfh9dYPP81d9VhUCKtQoRtl41yfqPvA 6x2qCQzJCc+zyzdeDNvxGJA= X-Google-Smtp-Source: AKy350ZHcLhWmer4FNa0ee5AqY0reO2GxA9uVueCmzd+CzsWnwnw3A75F2htBS/T2c5L+7q1HBehig== X-Received: by 2002:adf:e604:0:b0:2cf:f30f:cc08 with SMTP id p4-20020adfe604000000b002cff30fcc08mr2193299wrm.8.1680791197180; Thu, 06 Apr 2023 07:26:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:1f11:b0:2c5:5262:2e24 with SMTP id bv17-20020a0560001f1100b002c552622e24ls2294273wrb.2.-pod-prod-gmail; Thu, 06 Apr 2023 07:26:32 -0700 (PDT) X-Received: by 2002:adf:efc2:0:b0:2e4:e508:4a8f with SMTP id i2-20020adfefc2000000b002e4e5084a8fmr7211569wrp.46.1680791192729; Thu, 06 Apr 2023 07:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680791192; cv=none; d=google.com; s=arc-20160816; b=UGfa7wIhNoABqabclYTsEQeg76Vz2tKo4QFYMughqdCu5nngOHKDjhvlwV9PmfawO9 +KZskLGKQZhvTkZMXp8FOqNCfZlogIOsQQweKlF7b7ZBQ7IQsfZw3waXRMeoW4GKf8FG 2MwQo5QD2th5zc16ji+/JTjhCtd0KKi6DsiTo4StkrSzjkyZDT1aFTkIgvx2OvF028Z9 NSjDdJOuQvwui8aRSm+83ZAYXVz3PfiWM2Hf5VRjlDo44Eoaxyrf8VkQUIcoxlrbnVEW 77GqRulEVcEQcDUqSwswNKwgJtS7GRoDYcdYZsv6TVlurVUYtb1QZZQSiMy81hzmavYk Npkw== 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=Jqw8xhK481j3eEdX09rRZIZULwBNvQ9XWQGNMJmWEJc=; b=shX8IGV4/1f9pHnrgJ0s0ePFL/Ejybt7Gypn11HNt6w6UIDVkJf20HO76Sykz4kYZR gLIZTR3jQr2oWFsTTtiyuZwIdR1Vu5PGSW3pJOVbFb+2BZ50qUSjUFix+HW4hC1tUDE/ GeoWvV0Yy5f2fJ0JsEPud5rAROwGGdP9bJczMSfTTQIZgnDBToj+GzOJnktzMt4utqyw 0S2cU4aO0HsN0HvNDlTxhqMWWHlJfwMU34UseRyhPaNrLzQLfHj1gcs1c5OMDqLwbTPf 5bPSyqMV66RYKpAK7mSChpNOirkwAxbFW0ucYvTxnc6HDlykr72mzi3gAJ3kyCMzjqg0 14cg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=NI+9RSAu; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::631 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-ej1-x631.google.com (mail-ej1-x631.google.com. [2a00:1450:4864:20::631]) by gmr-mx.google.com with ESMTPS id co5-20020a0560000a0500b002c59c98f5dasi78819wrb.3.2023.04.06.07.26.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 07:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::631 as permitted sender) client-ip=2a00:1450:4864:20::631; Original-Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9341434fe3cso137282966b.1 for ; Thu, 06 Apr 2023 07:26:32 -0700 (PDT) X-Received: by 2002:a50:bb2b:0:b0:4fc:f0b8:7da0 with SMTP id y40-20020a50bb2b000000b004fcf0b87da0mr3228210ede.1.1680791191909; Thu, 06 Apr 2023 07:26:31 -0700 (PDT) In-Reply-To: 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=NI+9RSAu; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::631 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:32448 Archived-At: --000000000000ef907f05f8abb135 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable FYI, I created https://github.com/jgm/pandoc/issues/8757 for this. On Mon, 20 Mar 2023 at 21:53, William Lupton wrote: > 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 ig= nored here.

< > section>

B

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

< > section id=3D"c" class=3D"xxx">

C

Alternatively use a differe= nt > class name (apparently anything other than =E2=80=98section=E2=80=99?). I= n 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= %3A%3A%5Cn%23+A%5CnThe+%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%5CnAdd= ing+a+comment+fixes+this%2C+but+the+id+isn%27t+propagated+to+the+section+el= ement+%28and+this+header+isn%27t+in+the+ToC%29.+ref.+%3Chttps%3A%2F%2Fgithu= b.com%2Fjgm%2Fpandoc%2Fissues%2F8518%3E.%5Cn%3A%3A%3A%5Cn%5Cn%3A%3A%3A+xxx+= %3A%3A%3A%5Cn%23+C%5CnAlternatively+use+a+different+class+name+%28apparentl= y+anything+other+than+%27section%27%3F%29.+In+this+case%2C+the+id+_is_+prop= agated+to+the+section+element.%5Cn%3A%3A%3A%22%2C%22to%22%3A%22html5%22%2C%= 22from%22%3A%22markdown%22%2C%22standalone%22%3Afalse%2C%22embed-resources%= 22%3Afalse%2C%22table-of-contents%22%3Afalse%2C%22number-sections%22%3Afals= e%2C%22citeproc%22%3Afalse%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%2= 2template%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_xxhh%2BdpadBY%3DTL-r8-Z4me%3Dt5Ue_z9%2B_%2B6qX6xkWtnFbo= A%40mail.gmail.com. --000000000000ef907f05f8abb135 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
FYI, I created=C2=A0https://github.com/jgm/pandoc/issues/8757 for this.
=

= On Mon, 20 Mar 2023 at 21:53, William Lupton <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> wrote:
Dear = all,

Please see the "try pandoc" shown at the= bottom of the message (markdown and HTML are shown below). It seems that t= he '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 b= e ignored here.
:::

::: section :::
<!-- -->
# B
A= dding 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
Alternativ= ely, can use a different class name (apparently anything other than 'se= ction'?). In this case, the id _is_ propagated to the section element.<= br>:::


<h1 id=3D"a">= A</h1> <p>The =E2=80=98section=E2=80=99 class= seems to be ignored here.</p> <sec= tion> <!-- --> <h1<= /span> id=3D"b">B</h1> <p>Adding a comment fixes this, but th= e 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/pandoc/issues/8518" class=3D"uri">https://gi= thub.com/jgm/pandoc/issues/8518</a>.</= p> </se= ction> <sec= tion id=3D"c" class=3D"xxx"&= gt; <h1<= /span>>C&l= t;/h1> <p>Alternatively use a different class= name (apparently anything other than =E2=80=98section=E2=80=99?). In this case, the id <em><= span style=3D"color:rgb(36,41,46);font-family:monospace;font-size:13.3333px= ;white-space:pre-wrap">is</em> propaga= ted to the section element.</p> </se= ction>

https://pandoc.org/try/?params=3D%7B%22text%22= %3A%22%3A%3A%3A+section+%3A%3A%3A%5Cn%23+A%5CnThe+%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+p= ropagated+to+the+section+element+%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+%3A%3A%3A%5Cn%23+C%5CnAlternatively+use+a+differ= ent+class+name+%28apparently+anything+other+than+%27section%27%3F%29.+In+th= is+case%2C+the+id+_is_+propagated+to+the+section+element.%5Cn%3A%3A%3A%22%2= C%22to%22%3A%22html5%22%2C%22from%22%3A%22markdown%22%2C%22standalone%22%3A= false%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%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_xxhh%2BdpadBY%3DTL-r8-Z4me= %3Dt5Ue_z9%2B_%2B6qX6xkWtnFboA%40mail.gmail.com.
--000000000000ef907f05f8abb135--