From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30957 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sukil Etxenike arizaleta Newsgroups: gmane.text.pandoc Subject: Re: Adding attributes to definition lists using pandoc Date: Wed, 13 Jul 2022 16:42:24 +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="------------m4eKgIl0YRrdBqLx9SGrSSPq" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30167"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0.2 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIN5YV3SMDBBVNTXOLAMGQELTZ52LY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 13 16:42:36 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f189.google.com ([209.85.208.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oBdZR-0007e1-Kr for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 13 Jul 2022 16:42:33 +0200 Original-Received: by mail-lj1-f189.google.com with SMTP id a12-20020a2e88cc000000b0025d67ee6ec4sf1919819ljk.3 for ; Wed, 13 Jul 2022 07:42:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657723353; cv=pass; d=google.com; s=arc-20160816; b=AIvYduOVNlaLM4D7RpsSoZo8ccq0Un2yxwz7QhQknUvZVBxmxJz3S5RMv0bvw35MBk VEeO/8OHOoD7beSlMXsAzBNURXo2ovot7jLlT1jqxndON/zjfR+7vQleQvv0SA9kCUDu muztpcFM1Hk3Xw1CGcowYBb2OAQm/RZoBQM9e2dFAPYbD6WaDFNQwfugeB+584KV45Tj l0L1L6P0isapb+7gPbRCNE7YRc9VgWB0covIHGZIVovjMBHM4S47Zdnhwup8iGsoTPwA I1gdK6xrCDORyeGwo+c8dL0702WlHNzUAqO/wfvTEMPZDwIUuQbgYOu1iZCzjr90HI5T 9oxg== 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:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:sender:dkim-signature:dkim-signature; bh=K+HHaaGxoEUAGSKDPiNXXRPv3AaGxgmM7iLc4h6fUaM=; b=R2jjmSL9cr1VjVAT7s2IipLTiRPrFkWHYRS13e1v+/TERYjxP453FUhFScmc9MH/nA Hky485CAQDimw3sbJRm1GrsvOKSgleB7jvM23z4RB8BVmFVeitNIlXthdOQIlP+CyMrO sviSRhNP8TEcKDRFFOpl2N25iAgppOmdNfk4K7UH26Yw4R5Hp2dMk3N73pOquGkGtAS8 DfjD1RnYvsBQpZwIsM8EF7yoooqqGLkbp2AI434+iZxtWNoAIrFklQF4/3MYgld/tPq4 VQFmRVUkcqG+YE9NvnIfxlwC+f50GGdNfd4hHdeSRErL+nkoH84VZeN2ocKVIGx6bGgv z2xg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lo1oh44d; spf=pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=sukiletxe-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:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-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=K+HHaaGxoEUAGSKDPiNXXRPv3AaGxgmM7iLc4h6fUaM=; b=pvix+CDnw17q0RSQOBm9msVKWacBSlVqdvAT72m645NZmBn8ezjQZxzRw6g63QBf20 7vCtI6B0vWq5A/hSDjrjeiy1eZOhMIxp08M0P0bbkvIf00ZUPtSK5AT2BF0yyj3XeuGS YO563Voqf481s19Yw3G9kmpEx+x4q5trcn/A4YLcNCCuNCqHMEgf1frHf6H51QHC3O/j NYd8dagc5gKh/1q40LiWcc/wKZiH61ops3rI80xMbJiQlFUJQQXVEU3wVJkSwEbb1Ejw FPJCoyS60TUdJfa7Wk2NMWnHsEBl6cXQ8H6kgPzGA7KiAXkWGcuYIGRAUr5ru5RSP11X VPBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-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=K+HHaaGxoEUAGSKDPiNXXRPv3AaGxgmM7iLc4h6fUaM=; b=Iv8xQ45hGApb/ADwNoAEiQ9aghrjuH8HBXmACE5ph30aICJVZM8rI6VbTrDVspntwe rJZaimroD8MHhg+mFRVfCLE+txPWW11F2R3DbTZYlfVVtj0zEHD3/EOPBJLRP7CnFIxh mMrNbZj6r8LJm81RS/k+ufxDaPRMZVlPiBluzdbNGczp4ax08Blwi8bTi0n3wv41c6TE XAx4DEBpAujY/tuNUsUAGvx+VgTVyeD/wKEvX3QBWckfv+mpWq/Wv6CUKDpv45+tOx56 yHef14MislAGyAWCr4fkAj5ZTO6VUa+WCUWEv5caO1d+Os9BQipf8Rc4CHAqKcn7EK+2 OVZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-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=K+HHaaGxoEUAGSKDPiNXXRPv3AaGxgmM7iLc4h6fUaM=; b=fMkNO6uIhjH+S6HkcN7M9p7kadXNGXnauMw/CElQUdTTPkyZawW+cEZbQZIT2iLgRC Dy7qpeX6fx+SvA+LSSo29WeJPGXVMgBAMzt5vWOt60HSnIwUy2O0JdLKDhy6EnFeerwl VhfkckdQN3uPGNt/p9wqENTNcEgwl6uRuS7sCPXo0/3acZGG5OMHsp76k+C8n7HR/t+m wxEKRfKo/zbKj+CD4IpdM37GePj58HNH591FLTRXpGC9TUg367MlG3Hr1EPQPG3TKw5h zyA3OVJvL3iJa5wRHlA9pdVgZY73XpDcBta65uo1qBdn6FW28YaYqpfKGzE2B3cTfXQM Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8tuXYUpCHQy505rTFtgh1vOVIydp2xo2c9aZD4NBJMyr0fa7fn rOhxf2L1ENMMFnxlv6ZHp5Q= X-Google-Smtp-Source: AGRyM1vBbQYH0+0NKN28grRhJtePqFYgZ4sOJbWDpJemtHU/939XCYBfuNJvB1xHUzvL7XJ7cizWVw== X-Received: by 2002:a2e:bf0e:0:b0:258:e99e:998c with SMTP id c14-20020a2ebf0e000000b00258e99e998cmr1996004ljr.365.1657723352834; Wed, 13 Jul 2022 07:42:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:2102:b0:25d:5f70:6f64 with SMTP id a2-20020a05651c210200b0025d5f706f64ls1139067ljq.1.gmail; Wed, 13 Jul 2022 07:42:28 -0700 (PDT) X-Received: by 2002:a05:651c:1689:b0:25d:6700:ed2c with SMTP id bd9-20020a05651c168900b0025d6700ed2cmr1868922ljb.374.1657723348368; Wed, 13 Jul 2022 07:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657723348; cv=none; d=google.com; s=arc-20160816; b=Rq/cEv3FN8No0nNfQA5q4ihuKc4/79AnvGlkTvK8G1kmDIw5NTu/nAz/++dJnuCCTZ I8wXK+PjH25/xNJN1dr/pE8vWWh/EyrpGgkn5lY0A9pBSGyQ6qEbZEjoekGpDR+9wPfy wgMFRHWmnsBW5+SXL68ksQZLUAs3r9pK8DWOTrEDoD/tTFMuCfH8M+3hoHmHpJvpKbYZ WWAIrw+OPuLXbbGGkrz4eTq1CulWRENu94+wGPEdK2+UXtqlpheEklJwS8iBRYHfBN9S ivJW5yeyEqHK0CVxEokUTlLAiOYDpn9cPX/m8CSH5DdcQSLwwKmUIYVxbUsXuXLlg3+I gXVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=hD70HALyRSq/MCPL7mlUyfgA6/O9ccTY5Q9cliBMl3E=; b=CsxxExlUmn1NLrLiSpz4A8kM/36fDAThsGVLfnzv4x//DMgYQH53e4qb6dhpXzfYVY opA6uXbmeZtyxPqGOIKyLddnqfLfhAOYGzr1pIpSMkNjMmQdD5GJAsx8Pb90lzhMnxip s/ilFYztTjQ9/3+FspSYdbxV+/t7uXX7hwE3xSskJ0An/DYuYOoW+YAaRAUCa9EFxgCS 2bn+TIwY8uZRIcgCf7sXjaiMmmPs4u7uV3J+lSJWCO2DrZccMguAC/KBlFCMm3X+UrsD JtxTa5skX3vG4aL/sUlllwkxKUGPFwR/Whzi2LdsRrh5GNBnnJa7GoS6j6piUFuAJYyB 07hg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lo1oh44d; spf=pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com. [2a00:1450:4864:20::42e]) by gmr-mx.google.com with ESMTPS id s17-20020a056512215100b0048960e41f73si507765lfr.0.2022.07.13.07.42.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 07:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) client-ip=2a00:1450:4864:20::42e; Original-Received: by mail-wr1-x42e.google.com with SMTP id v14so15819709wra.5 for ; Wed, 13 Jul 2022 07:42:28 -0700 (PDT) X-Received: by 2002:a5d:6f05:0:b0:21d:810f:3499 with SMTP id ay5-20020a5d6f05000000b0021d810f3499mr3526635wrb.387.1657723347646; Wed, 13 Jul 2022 07:42:27 -0700 (PDT) Original-Received: from [192.168.1.23] (74.red-88-29-139.staticip.rima-tde.net. [88.29.139.74]) by smtp.gmail.com with ESMTPSA id v6-20020a5d5906000000b0021b970a68f9sm11127659wrd.26.2022.07.13.07.42.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 07:42:27 -0700 (PDT) Content-Language: es-ES In-Reply-To: X-Original-Sender: Sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lo1oh44d; spf=pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=sukiletxe-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:30957 Archived-At: This is a multi-part message in MIME format. --------------m4eKgIl0YRrdBqLx9SGrSSPq Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Hi, OK, technically it doesn't say it cannot be done, it only says that this=20 syntax is only available in headers, divs, spans, links and images. But wait, checking non-default extensions, if you convert from=20 commonmark or commonmark_x you can use this syntax with any element of=20 the AST. Technically it wuld add an enclosing div, too. This, however, wouldn't let you enable other extensions, check=20 --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=20 > that this /cannot/ be done? I was under the impression that using the=20 > braced syntax to add attributes was a sort of universal thing that=20 > could be done to any of the elements in the AST? > > Regards, > > Amine > > On Wed, 13 Jul 2022 at 16:29, Sukil Etxenike arizaleta=20 > 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 on the definition list. What am I doing wrong here? >> >> Regards, >> >> Amine >> >> --=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 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%3DsXy= 5Zt%2BT1Z0MZqXyLZS-YJCqRWRCkzyF-Lh_g%40mail.gmail.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 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-4= 3a8-35facb1e2788%40gmail.com > . > > --=20 > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send=20 > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgOYU8Z6XZ6uMxZ5t1-= 47OV7FKR7640O2hSb_VHStu3yAw%40mail.gmail.com=20 > . --=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/b187e3c4-0026-1853-d18f-86cedce39191%40gmail.com. --------------m4eKgIl0YRrdBqLx9SGrSSPq Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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 markdown -t html .\defi= nition-lists.md generates the following:

<h1 class=3D"class" data-key=3D"value" id=3D"identifier"&=
gt;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-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.g= oogle.com/d/msgid/pandoc-discuss/CAMwawgOyf796%3DsXy5Zt%2BT1Z0MZqXyLZS-YJCq= RWRCkzyF-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@goog= legroups.com.
To view this discussion on the web visit https://groups.googl= e.com/d/msgid/pandoc-discuss/6a4255a0-557b-a182-43a8-35facb1e2788%40gmail.c= om.
--
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-dis= cuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/CAMwawgOYU8Z6XZ6uMxZ5t1-47OV7FKR7640O2hSb_VHStu3yAw%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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/b187e3c4-0026-1853-d18f-86cedce39191%40gmail.com.
--------------m4eKgIl0YRrdBqLx9SGrSSPq--