From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32110 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: =?UTF-8?Q?Re=3A_Fenced_divs_rendered_as_HTML_sections=2C_taking_h1?= =?UTF-8?Q?_ID_=E2=80=93_how_to_avoid=3F?= Date: Sun, 29 Jan 2023 22:54:34 +0000 Message-ID: References: <7db57916-ce25-4e64-a521-24cdf3169af6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000028da1305f36efca2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10149"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBN7S3OPAMGQEQZH7WBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jan 29 23:54:52 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f59.google.com ([209.85.128.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pMGZX-0002Su-MH for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 29 Jan 2023 23:54:51 +0100 Original-Received: by mail-wm1-f59.google.com with SMTP id e38-20020a05600c4ba600b003dc434dabbdsf3734763wmp.6 for ; Sun, 29 Jan 2023 14:54:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675032891; cv=pass; d=google.com; s=arc-20160816; b=JxhA6FzC9euMNPjQd2aqzVSJ97y7jfrZOPzq+gWN+3d5YcQAhnbb48QT2UqIwi3nDo xELA71WspcsYsBSLMpKIBaBdnU9WCb0VJ0PGn81T+VkI904MLYd0syBIlvrhWI6QeOOE eQsl03jUFnvWWLAFekrzRrHJHvuRaHKlQzH2ynGl0IUjqDumzQIbrfLWKBN7s56mzv81 28VxCbI+HBGu/f2Z+rQNGSTNrZM9MKD1OO1WkSwP17M8+Fl+mJdUztKFX6jeAhas4TXU JAFn4zLGfaeNqKGdSH6nMRN0iAs8Sez+023NndGwPgNSvft8ER/XAO1ih+YVnoqUTxQI e0Rw== 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=gUlRUIcxuHiWxUludXvE5bQ4p+Cqg+MeI8TiR9sGtLo=; b=ZHp3cKU/0Z3ShACVbslRgMN7cNL24OUZNWSmxe2gdqrzWoSsGng2XYSvbR/iMAeum0 HjOXaSdtH+AID7JWbG9CQSR+XAxbDDcK/a6nlDVXF3k2YPVOgYzpcsTOjQMKDR8XSeiX 6DRu1tJ26UK0bkaLpqLqTGSQiDvO+uw4gxbfgeatzLoL+vLysj0WIrACZ0t5yg3QphCQ 0Ra/CjropwrJKZmot3byJcQGDS8onTaVaMsZLpxJ+m0GkE6sCB+Qi9nFV677R6q6hOm3 8ACDD5OOGQanqfN9FXxyHh+yokjULyMpeKCidNDz4o2Yrk+AlIbEb4lY3vbbadZq+0Ro kU4A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=U258jsGq; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62b 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; 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=gUlRUIcxuHiWxUludXvE5bQ4p+Cqg+MeI8TiR9sGtLo=; b=R3hwtytvfhNSWidyvvBp0n0AaazxeJapVtWVFMmtPqrEOTR948PuwFWBrWges5IRSc nSQvFq0yjTTDGUDtISyqdaGb3ARd8paImcitu3+g9EF/SHKG8TkaZuFCCG9N9Vt4pZTI LuWR+mTposEBkhnm4Yhjkbois5mIlCSu5sfR/iMuxztGSicm3iWzu2yaE8CuxBmJA5W5 3f4HyeO6YPH/bGmQwj09uwyOQ15W4EN3d4+lRNMJv1JUJweEDg3nvGaamzk3lxG/+ipW FSFmlCm6EDaFAj2W6g6lO11tMuLAgSegGmalG5FY0uqwUCp/tgQfX0DJ+AjLSI7mZj7Z f17g== 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-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=gUlRUIcxuHiWxUludXvE5bQ4p+Cqg+MeI8TiR9sGtLo=; b=e9HQh6OcxfQUE8xBuckky4V7SN7dpocoVrZAeZr5ziRAPJ9/pXCY0O1WTWA0dnN/CU pLSf2lJfgA6CaMrCk/72/rAmbJ2TfTvDDxg0L5sBzHNoy0CnOuXPoonON8XTWEkDQ2yo 4K8Z90erudk6CTdJIvXIwtpklZNL7ZP1Vp3OEU5SsHRVAy0wggclLKSLRwdwyIfUp/cd jo+NlAChWMV6QlEBGiaeQAW85Wk5dgrzsMcY9FJwBkw/wgCmGYZK149KpA/A9zUy91vU evLXWW3MudKeTZGWvUTCRG0JVp26y40lKPqzxWFFroC7dVmgQfBYRutA7FKqNzv X-Gm-Message-State: AO0yUKUB7y8AqAgS9uvWSu4JJbgqmCvHPM44POM3My3JCxIX376dvYQ7 FokN64D/9/sDmnJn1VgU2FY= X-Google-Smtp-Source: AK7set9BmQkQoTFQw0/gxwxxrdskhYwag4aBohzF+lbIsfSjMM9VPguVWqHLe7JZ8Ipd2mYyPJSmnA== X-Received: by 2002:a5d:594b:0:b0:2bf:c0e4:5edd with SMTP id e11-20020a5d594b000000b002bfc0e45eddmr633592wri.335.1675032890976; Sun, 29 Jan 2023 14:54:50 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1d83:b0:3dc:5300:3d83 with SMTP id p3-20020a05600c1d8300b003dc53003d83ls1172952wms.0.-pod-control-gmail; Sun, 29 Jan 2023 14:54:46 -0800 (PST) X-Received: by 2002:a05:600c:4256:b0:3da:2a78:d7a3 with SMTP id r22-20020a05600c425600b003da2a78d7a3mr45982818wmm.33.1675032886841; Sun, 29 Jan 2023 14:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675032886; cv=none; d=google.com; s=arc-20160816; b=LfBWuiPAcqJ7vnwxFLIpSFsaZaR6+gIGp59C11h/I9z/j76/vrUnm9q3X3uqldSizS 5L2ZnJYLALcSYrJHWhBS+DkC9KyxahUqhFGB8STRuUSQ9A5gVJF0jonl0fDKWzq1nXTM ONTu4bQZm4B2p9MUZCig3Maw+4StYtaJNCitBqSBQKXpW2cYXXOiycki4E8yJk5va5Dt jzrrsJV1P/sWcuXim9KE5xCRGqVsL86TnbmcfI15S3AOG6xbZe14/M1FfXh0+T+9fK9v GcVxgIiDD4if9SeMTOYMCEH/v/yoRHj33rJ4IGBtOA2j0vsaX93RiLMTZmDHmcfy0pHp W9sQ== 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=A0E1I0ZhjchkbLgndWMlSFnZQz7ZtCMd3O1xlEcUJlI=; b=Z/2CslS4q77jRbgzeHUoRXDMa9e0QzS2kDR5klxfBBMEGWCF8q1KQwMCFDSmII7jhB YOICgmlV0eJB+bTdzAROCF0+5PZZnkz50oK2QmW11en48AVS4uWARGUHp/gEuVHqBgmZ 5d3hJCpAKx0IKw6gZBPd2V3luWvLXmKG5mLgKWm6ClkB/WMScAxWhzab88VMg5xLz94Q o0eqYDx2UJAPqJyaIgVc2kwcRI7o8OF7cxgZLALubGRrNORMehQOUsRl9kRWuBeurt20 IEBO7ckSVSRsN22nGpAbYy5If6BnyJ4//GcT3DiSc4cfMBmb+NhKN1EXq0hrYGsiZ/oF qBzQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=U258jsGq; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62b 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-x62b.google.com (mail-ej1-x62b.google.com. [2a00:1450:4864:20::62b]) by gmr-mx.google.com with ESMTPS id ay10-20020a05600c1e0a00b003dc537184cfsi134727wmb.1.2023.01.29.14.54.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Jan 2023 14:54:46 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62b as permitted sender) client-ip=2a00:1450:4864:20::62b; Original-Received: by mail-ej1-x62b.google.com with SMTP id ud5so27203704ejc.4 for ; Sun, 29 Jan 2023 14:54:46 -0800 (PST) X-Received: by 2002:a17:907:d043:b0:868:dca5:b73c with SMTP id vb3-20020a170907d04300b00868dca5b73cmr6529010ejc.1.1675032886035; Sun, 29 Jan 2023 14:54:46 -0800 (PST) In-Reply-To: <7db57916-ce25-4e64-a521-24cdf3169af6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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=U258jsGq; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62b 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:32110 Archived-At: --00000000000028da1305f36efca2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable One thing that seems to work is to insert an HTML comment (a bit like the https://pandoc.org/MANUAL.html#ending-a-list trick) like this: ::: {.test} # Heading 1 {#heading-one} ::: This generates:

Heading 1

(If you've disabled raw HTML then something like \separator might work. At worst a small filter might be necessary.) On Sun, 29 Jan 2023 at 00:40, Martin Post wrote: > I am trying to use fenced DIVs as described > in the manual in > Markdown to HTML conversion. However, I=E2=80=99m getting sections instea= d of DIVs, > 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 > 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) > > -- > 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/7db57916-ce25-4e64-a521-= 24cdf3169af6n%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/CAEe_xxi2U6%3DtuQErQ7vPzAnWELFyeU90vRWGKc%2B1PwpPs2Jpyw%40ma= il.gmail.com. --00000000000028da1305f36efca2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
One thing that seems to work is to insert an HTML comment = (a bit like the=C2=A0https://pandoc.org/MANUAL.html#ending-a-list trick) like this:
<= br>
::: {.test}

<!-- separator= -->

# Heading 1 {#heading-one}

:::

<= br>
This generates:

<div class=3D"test">
<!-- separator -->
&l= t;h1 id=3D"heading-one">Heading 1</h1>
</div>

(If you've disabled raw HTML then so= mething like \separator might work. At worst a small filter might be necess= ary.)

On Sun, 29 Jan 2023 at 00:40, Martin Post <martinpostberlin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I am trying to use fe= nced DIVs as described in the manual in Markdown to HTML conver= sion. However, I=E2=80=99m getting sections instead of DIVs, and the ID fro= m 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 block has no e= ffect).

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 :
=
<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> ?

Thank 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 pandoc-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-24cdf31= 69af6n%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://gro= ups.google.com/d/msgid/pandoc-discuss/CAEe_xxi2U6%3DtuQErQ7vPzAnWELFyeU90vR= WGKc%2B1PwpPs2Jpyw%40mail.gmail.com.
--00000000000028da1305f36efca2--