From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30960 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: Re: Adding attributes to definition lists using pandoc Date: Wed, 13 Jul 2022 17:17:01 +0200 Message-ID: References: <6a4255a0-557b-a182-43a8-35facb1e2788@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a05edd05e3b14759" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12057"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBB66DXOLAMGQEI5TWQDQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 13 17:17:19 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f190.google.com ([209.85.215.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oBe75-0002ta-8T for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 13 Jul 2022 17:17:19 +0200 Original-Received: by mail-pg1-f190.google.com with SMTP id p35-20020a631e63000000b0041992866de0sf1332761pgm.19 for ; Wed, 13 Jul 2022 08:17:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657725438; cv=pass; d=google.com; s=arc-20160816; b=UPcGVnDEtiwjuHCOZAtBwTENR3y5ZRibBidGT1Xp+f/zMQPE5/oo+A5ZqTuNoisyXD w7ptM3GT/W4N7Yix1pX6d0WFWvOQT/fdLu0ry7lCDCpSzNXpj1vNwkHIOcOpqJ14ksPE FPBc1jUeS3anVoyuPCTior3tymiYuruYWLLW68gX//cCg8/D7xBwhXmJzEWPoDkUfx0B UopxVu6DjlySD5PowGO2fc9Tt3cn5o9AAJFrhhwqXlZnyr5e5U3N2jvVFJ/DCReCRALM KHLinYmff3gLjj/Q4ie/Dcmn8DTwPACWrO0dmD5+BaON//Xw7850Kw/snN9Ue+d7/UDM gjdw== 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:sender:dkim-signature :dkim-signature; bh=9YoGuTNIxzci/4i527lyXlwvmcCn/bQK/z29rHxzeHs=; b=t9nQuw0rimUvXI73Rj3IuT4jErObErRgFsySsJxiPX7HDVXpmpUKNKF3eBlj+R+QUG FW0o0VnTdQ97hr9c2nDyzYwCd0M5VqLZwAfixs2SwRBXggIRwG2poAhQgAmPmAIs23cz mRNAqy4rEqdue1+2hw1qSiHRbFR9Q8RkGyOiNXEprx0H2UGIBou/aloX2gh7DqMs8Rof SSPozxZROvvn8Ipwt/ZtHGVdzXBnf27hDPDnmCU8kHYczZgfa1vktWXaBAurz6lLNMI4 ANHC4PY3MJt+O7lbQPQ1GA/HYWR2XzkGe8EZkpQPvK8I2Yk/+iDANbHGU1f2IuuYFgZT rlLQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mIKyJx2K; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=9YoGuTNIxzci/4i527lyXlwvmcCn/bQK/z29rHxzeHs=; b=hnq5KjSfmbA8aG1dM5Ad74S3NdC2y+eRUSIzOmFujj9ILipA3+J21CEYTwk4hBuloG i36GTd6LadrLVZfKVbhT/fbI6VqU1Fotfh+DGPSGXYYod5Hzm1MolsgSW0lIPPfukJZd 8a49IoUSwGMDXVTCz5yuBJiwiD0paGrG5l4DTO46oj7ZtFKlw7EIin2YQxMaQtM8acIm XG+QXtSc9aUNUdaE53VNLWFy9HfL+UpcmgNz/PfjVR0cfCmHMqxgPe/VGLahnu6/SbFi OklKp2Z3vTW4rbZM1woR03xGfqwXC72XBsWqeuomOGcMgRcKznkRXUTmag2N3+pIr+SJ +FdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9YoGuTNIxzci/4i527lyXlwvmcCn/bQK/z29rHxzeHs=; b=EQuFEIJW3PklWRE3SJPFdfP3pBIazxRjO65K91HS+jVE3IZ0mKoB2vWDPWty1gDEfa Ur67WR+7X1ukIsaP4lUfGqk5Fj3TSZY+hTTriJKuoW4SZkX3opWmv8P5rEXKOMFtgBaw Ek+YCG1sPu8fQgRf2auMfnl49MVKCxnjUAkvu7tTJPLOO3dymNGHreJrCkrwIKYBmYsa yEoNHIu3TkJPcY/VqXmziH++oXV4xXwaiRiaAp7kg9b0dTsDJ3QfEC5OugYAFO0/z8A4 kjmULY0U6rTKER5UV+VeBWhCQ5Y670nj5/PHS4UEb7Fa9q83tqW1YMUYUAn2xszqyHDJ XSgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9YoGuTNIxzci/4i527lyXlwvmcCn/bQK/z29rHxzeHs=; b=YpgygM0wZgOLQzXIq/pYSppGgUfiHjy7n0VETeeThoRGvl/EU62p4BVHOyS9ERhO/I O8awFHw3gGvOrQm4USV4Rp8XjPBfeDwl50o3Sn8gpHiv2iv2dypfRliHmjjqdQ0w2lBV lO/l7flU49o50KsMcO52391MAcV6TMoqIV4iNTOqC79BBVoGYwkU0LcgI8RtI+ZEz9AX Y7ujIzHiib4EP5m64gv20B2gTkzE0TWHxFyiVhjM1MRtKlnwS82uEPLlSDJEaqtvyRc/ y86GhxV+M3f8ePHhOIeKwCyHtIGzn8js/7Tw92jPoZuya8/JyRFXXsbR4mV8c0wQV0c1 2/hg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora/JIyiJ/KdZ393AhYiYCbNaBDfdyd16yfrIVW9cwockowzqLiYp kSIQkR/kKqncLQ7b78VrjWY= X-Google-Smtp-Source: AGRyM1sucYotN35YXoCT1cQIU80V2lEFRskUBZq22ynlu/iMIDu0Z1HBk6nZ1CFpiU+Mpnx6SMHhzg== X-Received: by 2002:a63:2cc6:0:b0:411:4fd6:49cb with SMTP id s189-20020a632cc6000000b004114fd649cbmr3319682pgs.365.1657725437932; Wed, 13 Jul 2022 08:17:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:f604:b0:168:9a69:49b1 with SMTP id n4-20020a170902f60400b001689a6949b1ls3085293plg.6.gmail; Wed, 13 Jul 2022 08:17:14 -0700 (PDT) X-Received: by 2002:a17:90b:384f:b0:1ef:e95d:de66 with SMTP id nl15-20020a17090b384f00b001efe95dde66mr4239250pjb.174.1657725434265; Wed, 13 Jul 2022 08:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657725434; cv=none; d=google.com; s=arc-20160816; b=th5o9L3VXyRkTZKXtINaIeD+N458BunNYtqMydKkE9LOJyLtDJXG/uiLvwTsangLAK hKDTQFed1dkFoC9/zqvnxmxcrMTu5NQzSfjd9DTrnneW33id3alvdbFnBkhBskoxeZwe 9jPAFPitd1fstfFCaxWoFloZ8qeGWx7jYJ/Fwl05oeHuIghfocWr28B7I3o0wMH3ywAl c4VlJYr/z6yB82JxnpRVoZNwM4ZyzVZ5lP0Ubl1YRx9cS3Vsh8F4zGz09Jk23M+0T/R9 wmwsNYwhoPjaSg+kUFkPPyRkAII/5b5tkXlx/Kie8qvN/ubMC/wTFHZ7kefnVd81bH9D e4FA== 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=GKnzXv3S/nMUKOwtVxd9rBBzdvbQRdrMxH5JtqjNhNw=; b=q708kX+5w/KvpLcHEuHINlLXSz96RZnEVdGbn8QLW9pG9YWsFj0nxABN248ce5DUxa LxJnc1rWalH+qpHhGN9joCLbYZnwy9QeVZ34oFi7DUtjvCP35EuAbBPeQdrTgUExUEKS dBEhs8onsSnHoYrOSmV6w41fC4vlSfWJvzeD52QbkQRkcpP0bKyzvD5eUr0hNzkztM2L D7EjG9XIow2zLKl1AXwbhFdb4uhTnnUnc+V3WSUPlfiR77sLgUXGYa7XcTpvY2w8JPyd EX8MMZ0X8/CBj6PYBXBfoblo30/x0ffQRz1z/EYaaxtYKU9MzkIbJvaRDy+LX0G1Ng/V NGCw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mIKyJx2K; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com. [2607:f8b0:4864:20::102c]) by gmr-mx.google.com with ESMTPS id p18-20020a637f52000000b0040dbc21c6a9si437804pgn.3.2022.07.13.08.17.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 08:17:14 -0700 (PDT) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) client-ip=2607:f8b0:4864:20::102c; Original-Received: by mail-pj1-x102c.google.com with SMTP id g16-20020a17090a7d1000b001ea9f820449so4149654pjl.5 for ; Wed, 13 Jul 2022 08:17:14 -0700 (PDT) X-Received: by 2002:a17:90a:8b8f:b0:1ef:9130:f96c with SMTP id z15-20020a17090a8b8f00b001ef9130f96cmr4287581pjn.20.1657725433960; Wed, 13 Jul 2022 08:17:13 -0700 (PDT) In-Reply-To: X-Original-Sender: amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mIKyJx2K; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:30960 Archived-At: --000000000000a05edd05e3b14759 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Looks like it might be a bug.... anyone else? On Wed, 13 Jul 2022 at 17:14, Sukil Etxenike arizaleta wrote: > Hi, > > I've tried it too, and it gives the same results. I don't know why this > happens. > > Regards, > > Sukil > > > El 13/07/2022 a las 17:01, A A escribi=C3=B3: > > Dear Sukil, > > So I believe only commonmark_x provides the non-default attributes > extension. It=E2=80=99s not included in commonmark, I don=E2=80=99t think= . > > So I tried with commonmark_x on the following code: > > --- > title: my title > author: bob marley > --- > > # Header {#identifier .class key=3Dvalue} > > Some text > > {#special .glossary} > Term 1 > : Definition 1 > > Term 2 > : Definition 2 > > with the following command: > > pandoc -f commonmark_x -t html .\definition-lists.md > > But i=E2=80=99m still not getting the attributes added to the
elemen= t: > >

Header

>

Some text

>
>
Term 1
>
> Definition 1 >
>
Term 2
>
> Definition 2 >
>
> > The other option is to maybe use the fenced_divs extension with regular > markdown, but I=E2=80=99m trying to see if there=E2=80=99s a more generic= way. > > Regards, > > Amine > > On Wed, 13 Jul 2022 at 16:42, Sukil Etxenike arizaleta < > sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi, >> >> OK, technically it doesn't say it cannot be done, it only says that this >> syntax is only available in headers, divs, spans, links and images. >> >> But wait, checking non-default extensions, if you convert from commonmar= k >> or commonmark_x you can use this syntax with any element of the AST. >> Technically it wuld add an enclosing div, too. >> >> This, however, wouldn't let you enable other extensions, check >> --list-extensions=3Dcommonmark etc. to see if this would suit you. >> >> Hth, >> >> Sukil >> >> >> El 13/07/2022 a las 16:32, A A escribi=C3=B3: >> >> Hi Sukil, >> >> Thanks for your quick response, but where in the manual does it say that >> this *cannot* be done? I was under the impression that using the braced >> syntax to add attributes was a sort of universal thing that could be don= e >> to any of the elements in the AST? >> >> Regards, >> >> Amine >> >> On Wed, 13 Jul 2022 at 16:29, Sukil Etxenike arizaleta < >> sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> According to the manual: no, but you can enclose it in a div and give >>> that div the attributes you want. >>> >>> Hth, >>> >>> Sukil >>> >>> >>> El 13/07/2022 a las 16:18, A A escribi=C3=B3: >>> >>> Dear All, >>> >>> I would like to ask whether it is possible to assign attributes, >>> identifiers or key-value pairs to definition lists as follows in pandoc= : >>> >>> --- >>> title: my title >>> author: bob marley >>> --- >>> >>> # Header {#identifier .class key=3Dvalue} >>> >>> Some text >>> >>> {.glossary} >>> Term 1 >>> : Definition 1 >>> >>> Term 2 >>> : Definition 2 >>> >>> Compiling the above with pandoc -f markdown -t html >>> .\definition-lists.md generates the following: >>> >>>

Header

>>>

Some text

>>>

{.glossary} Term 1 : Definition 1

>>>
>>>
Term 2
>>>
>>> Definition 2 >>>
>>>
>>> >>> The attributes on the header are getting picked up by pandoc, but not o= n >>> the definition list. What am I doing wrong here? >>> >>> Regards, >>> >>> Amine >>> -- >>> 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/CAMwawgOyf796%3DsXy5Zt= %2BT1Z0MZqXyLZS-YJCqRWRCkzyF-Lh_g%40mail.gmail.com >>> >>> . >>> >>> -- >>> 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/6a4255a0-557b-a182-43a= 8-35facb1e2788%40gmail.com >>> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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/CAMwawgOYU8Z6XZ6uMxZ5t1= -47OV7FKR7640O2hSb_VHStu3yAw%40mail.gmail.com >> >> . >> >> -- >> You received this message because you are subscribed to the Google Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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/b187e3c4-0026-1853-d18f= -86cedce39191%40gmail.com >> >> . >> > -- > 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/CAMwawgPPQCVG_xQfVoQD7nP= qaU8ObZd%2BcM5gcqEXuuy3ouPBFw%40mail.gmail.com > > . > > -- > 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/fa49db14-b03b-f29d-32bc-= daf4b80d6b39%40gmail.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/CAMwawgMECRkn7n5G3cj%2Bi%3DimJuUZeciPN82mVQAZZtPc7yJqRA%40ma= il.gmail.com. --000000000000a05edd05e3b14759 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Looks like it might be a bug.... anyone else?

On Wed, 13 Ju= l 2022 at 17:14, Sukil Etxenike arizaleta <sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
=20 =20 =20

Hi,

I've tried it too, and it gives the same results. I don't kn= ow why this happens.

Regards,

Sukil


El 13/07/2022 a las 17:01, A A escribi=C3=B3:
=20

Dear Sukil,

So I believe only commonmark_x provides the non-default attributes extension. It=E2=80=99s not included in comm= onmark, I don=E2=80=99t think.

So I tried with commonmark_x on the following code:

---
title: my title
author: bob marley
---

# Header {#identifier .class key=3Dvalue}

Some text

{#special .glossary}
Term 1
: Definition 1

Term 2
: Definition 2

with the following command:

pandoc -f co= mmonmark_x -t html .\definition-lists.md

But i=E2=80=99m still not getting the attributes added to the <dl&g= t; element:

<h1 class=3D"class" data-key=3D"value" id=
=3D"identifier">Header</h1>
<p>Some text</p>
<dl>
<dt>Term 1</dt>
<dd>
Definition 1
</dd>
<dt>Term 2</dt>
<dd>
Definition 2
</dd>
</dl>

The other option is to maybe use the fenced_divs extension with regular markdown, but I=E2=80=99m trying to se= e if there=E2=80=99s a more generic way.

Regards,

Amine


On Wed, 13 Jul 2022 at 16:42, Sukil Etxenike arizaleta <sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi,

OK, technically it doesn't say it cannot be done, it only says that this syntax is only available in headers, divs, spans, links and images.

But wait, checking non-default extensions, if you convert from commonmark or commonmark_x you can use this syntax with any element of the AST. Technically it wuld add an enclosing div, too.

This, however, wouldn't let you enable other extensions, check --list-extensions=3Dcommonmark etc. to see if this would suit you.

Hth,

Sukil


El 13/07/2022 a las 16:32, A A escribi=C3=B3:
Hi Sukil,

Thanks for your quick response, but where in the manual does it say that this cannot be done? I was under the impression that using the braced syntax to add attributes was a sort of universal thing that could be done to any of the elements in the AST?

Regards,

Amine

On Wed, 13 Jul 2022 at 16:29, Sukil Etxenike arizaleta <sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

According to the manual: no, but you can enclose it in a div and give that div the attributes you want.

Hth,

Sukil


El 13/07/2022 a las 16:18, A A escribi=C3=B3:

Dear All,

I would like to ask whether it is possible to assign attributes, identifiers or key-value pairs to definition lists as follows in pandoc:

---
title: my title
author: bob marley
---

# Header {#identifier .class key=3Dvalue}

Some text

{.glossary}
Term 1
: Definition 1

Term 2
: Definition 2

Compiling the above with pandoc -f mar= kdown -t html .\definition-lists.md generates the following:

<h1 class=3D"class" data-key=3D"=
value" id=3D"identifier">Header</h1>
<p>Some text</p>
<p>{.glossary} Term 1 : Definition 1</p>
<dl>
<dt>Term 2</dt>
<dd>
Definition 2
</dd>
</dl>

The attributes on the header are getting picked up by pandoc, but not on the definition list. What am I doing wrong here?

Regards,

Amine

--
You received this message because you are subscribed to the Google Groups "pandoc-discus= s" group.
To unsubscribe from this group and stop receiving emails from it, send an email to p= andoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc= -discuss/CAMwawgOyf796%3DsXy5Zt%2BT1Z0MZqXyLZS-YJCqRWRCkzyF-Lh_g%40mail.gma= il.com.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.<= br> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+u= nsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6a4255a0-557b-a182-= 43a8-35facb1e2788%40gmail.com.
--
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@= googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAM= wawgOYU8Z6XZ6uMxZ5t1-47OV7FKR7640O2hSb_VHStu3yAw%40mail.gmail.com.
--
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@goog= legroups.com.
To view this discussion on the web visit h= ttps://groups.google.com/d/msgid/pandoc-discuss/b187e3c4-0026-1853-d18f-86c= edce39191%40gmail.com.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgPPQC= VG_xQfVoQD7nPqaU8ObZd%2BcM5gcqEXuuy3ouPBFw%40mail.gmail.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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/fa49db14-b03b-f29d-32bc-daf4b80d6b39%40= gmail.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/CAMwawgMECRkn7n5G3cj%2Bi%3DimJuUZeciP= N82mVQAZZtPc7yJqRA%40mail.gmail.com.
--000000000000a05edd05e3b14759--