From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32107 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Martin Post Newsgroups: gmane.text.pandoc Subject: =?UTF-8?Q?Fenced_divs_rendered_as_HTML_sect?= =?UTF-8?Q?ions,_taking_h1_ID_=E2=80=93_how_to_avoid=3F?= Date: Sat, 28 Jan 2023 16:40:10 -0800 (PST) Message-ID: <7db57916-ce25-4e64-a521-24cdf3169af6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2794_312132016.1674952810261" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14680"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCHYFZ6CWYNBB24A26PAMGQEPV2HOEQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jan 29 01:40:15 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f63.google.com ([209.85.160.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pLvjy-0003b5-Ll for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 29 Jan 2023 01:40:14 +0100 Original-Received: by mail-oa1-f63.google.com with SMTP id 586e51a60fabf-1635c250efesf2644188fac.19 for ; Sat, 28 Jan 2023 16:40:14 -0800 (PST) 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:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=mHmfy+QTIcmiGnkY13PayHkHm/lT+Owho0FxngPWY3E=; b=dbVPRXnMpw97mrtgYDb0U9+yAAhyMog2k9W4530rbB6h6RvHm4UI/UQe1jdOT8CDps bL/57zc8gKGVtmgvMatrGJohGnrQbQQO5lYlCYHraseScs8t90px0Wa2xSvj/og8Kb+X phDZhbkME0Vy2ZYUTN0IvXyBPO+BjyhBbl2oT2s2V9pAVZaF1leoSKJUn9cDSQxxB73E X4XfVp3Xs5ddf5YR9QSl3zRIxklVkVq73X6rd9EgMb5i+ESYJH+cSk4i38ZWq2L2eksh h6qWZksKPqkARgt6QUUcu6QeLuvQ0eGi/hC8Sq6EWokSP4FW15JTv7HtztY1Ts7wtep/ 9Dag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=mHmfy+QTIcmiGnkY13PayHkHm/lT+Owho0FxngPWY3E=; b=Tp1FXz2/PUKWIioEO0OWSonZVUb2rhu4+TLNdwsCsm+1cmYE76XSzpiG9DavxQISQ/ T/a6KycFR9yVXLK+H6KLvRaFMd+abvCZuilvIhoFxtNeUyj35Umx2p0q8FNaVSfYWqIA sei3WdRKuYywuh2RFn7XHk5U9qKghOZ+9JBhamuoUvWcF2HUFCZKLGlytD/EkSajY+ww s3N3qJIssZD1cPiPZNdES7p47tC+qn/2m4eRlhRe6oUxapGNjcqk01sYjd3PH5sRsXxI cq1fS6JkG+2y/z/3DOBnJZNNV4QMqkiBwi3dpyKeEU+xBGDrf9zX5ASfdIbKuD3c2V3X 7bRQ== 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:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=mHmfy+QTIcmiGnkY13PayHkHm/lT+Owho0FxngPWY3E=; b=EO6yByk6HLYFfYMRr0JjQMpvkeRRMPY8Dmz61ulknT6IhBlxz4YQirDwa2vzIC9y2b eBEQeVN2Px/WEHTYERTG5liwnUG2c0+UpoyoNj0DGHD0NAJupbgIpNBGf1LRM4fnOgok SAdd3nOGqHCSyFfonkslwjuSIEGU/BzS9NqvUVYBu+Bif87Ezkr9LBwVtG5CE9loYCeg zbAdl4+JXicdc3jUcGJ7y7FqfYb87DXujym6sWxJ9uK6NEpKBPw/gooZYZPTiR6liN1l bR6Ty2aKoPHcYZDvET1nhdq+/NDTGHTUGrCxOM+VXs91OGM/GIN4dyn115xExWlFdWEK i4Bw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kpnBCLsYZHYwuYPqH4VCcUQgFb1OhjqkNGH8lKULY4gFhnhVJ2e MnIkppo1Ya9Jb0pK+aPVFbk= X-Google-Smtp-Source: AMrXdXu2m8OZTST9+nxTQeobjjlV+fEsleHetRMKSXcgAsylxetfysfhsB2ufbvzFoh3XM4iwKhZGw== X-Received: by 2002:a05:6830:600a:b0:684:cec7:aeff with SMTP id bx10-20020a056830600a00b00684cec7aeffmr2322954otb.70.1674952813271; Sat, 28 Jan 2023 16:40:13 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:b19:b0:15f:93fd:8b47 with SMTP id lh25-20020a0568700b1900b0015f93fd8b47ls3705871oab.5.-pod-prod-gmail; Sat, 28 Jan 2023 16:40:11 -0800 (PST) X-Received: by 2002:a05:6870:a923:b0:163:83b8:73ea with SMTP id eq35-20020a056870a92300b0016383b873eamr503125oab.237.1674952810777; Sat, 28 Jan 2023 16:40:10 -0800 (PST) X-Original-Sender: MartinPostBerlin-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:32107 Archived-At: ------=_Part_2794_312132016.1674952810261 Content-Type: multipart/alternative; boundary="----=_Part_2795_1904860082.1674952810261" ------=_Part_2795_1904860082.1674952810261 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am trying to use fenced DIVs as described=20 in the manual in=20 Markdown to HTML conversion. However, I=E2=80=99m getting sections instead = of DIVs,=20 and the ID from the enclosed level 1 heading is moved to that section. I have not set --section-divs (and even setting it to false in the YAML=20 block has no effect). So =E2=80=93 how can I make the ID stay with the heading? Source: ::: {.test} # Heading 1 {#heading-one} ::: Result for pandoc -f markdown -t html -s test.md -o test.htm :

Heading 1

How can I get

Heading 1

? Thank you. (Pandoc 3.0.1) --=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/7db57916-ce25-4e64-a521-24cdf3169af6n%40googlegroups.com. ------=_Part_2795_1904860082.1674952810261 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am trying to use fenced DIVs as described in the manual in Markdown to HTML con= version. However, I=E2=80=99m getting sections instead of DIVs, and the ID = from the enclosed level 1 heading is moved to that section.

I ha= ve not set --section-divs (and even setting it to false in the YAML block h= as no effect).

So =E2=80=93 how can I make the ID stay with the = heading?

Source:

::: {.test}

# Heading 1 {= #heading-one}

:::

Result for pandoc -f markdown -t ht= ml -s test.md -o test.htm :

<section id=3D"heading-one" class= =3D"test">
<h1>Heading 1</h1>
</section>

How can I get

<div class=3D"test">
<h1 id= =3D"heading-one">Heading 1</h1>
</div> ?

Tha= nk you.

(Pandoc 3.0.1)

--
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/7db57916-ce25-4e64-a521-24cdf3169af6n%40googlegroups.= com.
------=_Part_2795_1904860082.1674952810261-- ------=_Part_2794_312132016.1674952810261--