From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33303 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: Re: Assigning identifiers to definition items Date: Sat, 11 Nov 2023 22:57:48 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c91dda0609e787d7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27033"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBB2PRX6VAMGQE4XPFM2Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 11 22:58:05 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f191.google.com ([209.85.166.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r1vzR-0006qY-HK for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 11 Nov 2023 22:58:05 +0100 Original-Received: by mail-il1-f191.google.com with SMTP id e9e14a558f8ab-357c8d93b1bsf31461005ab.0 for ; Sat, 11 Nov 2023 13:58:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699739884; cv=pass; d=google.com; s=arc-20160816; b=Zc6cmJCDuMwAWAcxqN0Hr8Gz79tZZ9d7Y6PGvM7NIDHYPLaZTCkbxbbuP0M0kCVAVS 35w+SANzZ6LcdBLyTj1OLfrU3Ablk01MSf8/wJxOBX0hR0BZA8Ezyv686M4pl39Vi/Or DX0YE3Qe80XYND0LevFpnzG5CqL3jdHEmqEayBhfzUxSQIGj+2LdHOFpUHt6YwWiCRc0 20ggjCCYmqiissfxcaW858QprixSkjMWMtMMZzhS+TwyiAstSc1V9wEZea4Fvr/X2+Z2 Y3EmjRm68cKHAADibi46Ch8plSaqX93WsKDUB/DTlSlqLpPuKHBYDlM7ySHZE8rgvyDF Bgwg== 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=jCqWBKNa1P84lNenFaWs3mJuv/7BL6laHmAJ6lhh/GY=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=oocNbvEaiiTVdEdpu3Q2c4pwbX3CMK79azDpA74jd8SubTulV0DdBefM651+uhYUvL 6dCu9eAEIb8b/+E8rrzkpdiiQlaurVWSx712WQFKu5ttjEP19G7g5yZqNvzxcjHnsA0B kRfrgXOzvQ/ndG3QRGSRWdyJlzhNKciCkEujNCn7OJsPFtQWAjmq8lJaMmq4dfJZ5LRe Ou4uaaK4/5WfPbXX5yhrHczY8Emh+udNaQEvDWnrvMrajvSmXtyHtgdaKnZ24HKHVplC ++yO4QZSYf8BRYGshyCZUawd5Uye5zyb7Ghwn6b4NApxbsMmbkvOaVKBiHh2618cgPdC b72Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ehniqq2E; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12a 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=20230601; t=1699739884; x=1700344684; darn=m.gmane-mx.org; 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:sender :from:to:cc:subject:date:message-id:reply-to; bh=jCqWBKNa1P84lNenFaWs3mJuv/7BL6laHmAJ6lhh/GY=; b=sNRO9mAGZxlSw2OQtmQF+Mx9brZjC5aBY3JHUqnHBAeVbRNO31Ix5e3acqeKA84O/V 4ZnvbCzW7R86/Ci66ixH+jx/8T1ZPAyA+mqfsGmc2MvfEOSHCyyOUsTAZZODUQL4JLD1 q+N/oaj/tJa09CgFM+vpVVpHcmtBxjzH2VaWqJo0X+drJn0+d9IGgL7nDKlKBiH7gyfo dRwoGqMKvoi20gtSFOsYRqQRUY5RQUyiLThiHHljOybLo6KYu4pbKdIPw6MIEfGdPTKL 8YqiTC1RofAFe0BvyMnfYqK293R/rlPzIWYp0umGbR6d/mKKiUTs DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699739884; x=1700344684; darn=m.gmane-mx.org; 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=jCqWBKNa1P84lNenFaWs3mJuv/7BL6laHmAJ6lhh/GY=; b=I2a9/kPttbInFO24FXEPW5o87JjCjkXMAERYQ4YSglyzIYDKQt+L2MxQxCD75GwsTj QlB383cMqlh2ThML0Fd3Chdhvb/+ovkKGufpEJ3cnc/G7H2shn01BDQyO31odINXuHNS vvnZYDn8uiUcoR+DFkdPyd+kyrPKypz000ljpN8w9dWORrs3E18LndAeRxC1hlXY5Art k6Pxzpxyvt6dh6ZFhCqucak6zRgdCpL71PaQsMLsAkklK0eOJL8PqxMddLC3U2MT1ojC q3Q2IeBUOeypv5ih+bIy8ezSf7obGrTTOytNKLpPRX7B27xZl/cwEGN9yja00gDTlu X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699739884; x=1700344684; 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-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=jCqWBKNa1P84lNenFaWs3mJuv/7BL6laHmAJ6lhh/GY=; b=ZET/DHg7GRwj2LAsggMWZIiy1EhWL3gWuvo4wL6wm9zG2wTXv8IMo24iIqz0KHyMne Puj+iPzTUfGnOeZtRiEALlVL8bV2sJTH7dWhUeGHsv0G2yBQN9xUQpGG+V16KfVpfpR1 zrKntR7T5f/o9iUeh3NRVTfTm6PuZK6N+3T91pQTo6QOAN5zgmOEzOx19+qUnJI4/l+8 luMYm6aTEQFIRgr7BpLeE5Tk7OaW4xKxPB9ZPOZ73MVDiNHe3YgA+TiRXiyD4NMPavUe qqEqTV Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yw22kPBlgDZteZYBGa/P/l45HlobviZTAP4ejHKsUBHlJQmhWDp 8Zxusp2caA/Egj7TsiO+VtU= X-Google-Smtp-Source: AGHT+IHlRGYKdkyli6eR/URhnDZkPYr6FF8o8Zq8TmVVgA4AHML286Uu1jUNqRczbvUzHggNTayBUQ== X-Received: by 2002:a05:6e02:b46:b0:35a:b283:d163 with SMTP id f6-20020a056e020b4600b0035ab283d163mr1627847ilu.3.1699739884321; Sat, 11 Nov 2023 13:58:04 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a92:c56c:0:b0:359:6bf2:7ab6 with SMTP id b12-20020a92c56c000000b003596bf27ab6ls1979957ilj.2.-pod-prod-09-us; Sat, 11 Nov 2023 13:58:01 -0800 (PST) X-Received: by 2002:a05:6602:2e92:b0:798:2415:1189 with SMTP id m18-20020a0566022e9200b0079824151189mr4257137iow.12.1699739880897; Sat, 11 Nov 2023 13:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699739880; cv=none; d=google.com; s=arc-20160816; b=akcop9xriCpaycDrbblxrAQ3N5xGk3VKKYXkoXI4SyW5HlOA1RAETMhTCaDENzUqgA Ojs9R1ARkTjEe6Aa0cAE9MiV0fGOXr4y4kc0ALrfL2yWQuYMpAzJvq62o8iTPYCjmfEB 2d2qczSQKLe1UpvC9P77ab2GzEgsSZI1fJ2duyvYDS2r5vwHRO2MEMiHFDJeL1TXbwVh F1O4zlX/XchmArjxcfcoT+VEXTbVqiTMrmbBm8o/2UiP+ej47fekVO49UBP5vDjrD0qb quQC9J7U7HgFmKFnKMiKp7SPYA0P2gC61SdQsuVVepIe+VUw7sedlDERTBOHkYVckRlT 2A5A== 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=RKodnyfTQLtJScVqlB8PjjG/OoRqFzNVJIqKj1+6yj4=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=HIbpyPBtBbllm3PhQSR94KNBeQ0yY/KUUT4PpVzx5tvFtHWOEN9hClifmr8NdpPZ3w KenTb9iBhWvDq7gWC9ZNk8sX+5W40xLwhXLwQpm38rtyiQ5XSQBj7Ls+4AFy/CkI1tzt u0IKdBzH0mjLEehp1dY8bIAFnQcTrCBmNcT7ckgx23RaAKw23y6c4MQxAj068c1P+COg F4Nt1XG792aq/sk0XjD7CiRMiEETGe8zqOKrfz8Jv3/Gl1DUmy/cZMswb/JtP44EkXXB oQEMkokMcum09MESVL5shKnO3HvJKwDaerNcQ75gg47tBYqCLCTVNEwo5+XzZJjU6Pjd vAaA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ehniqq2E; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12a 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-il1-x12a.google.com (mail-il1-x12a.google.com. [2607:f8b0:4864:20::12a]) by gmr-mx.google.com with ESMTPS id cx20-20020a056638491400b00439ca012a0bsi368049jab.6.2023.11.11.13.58.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Nov 2023 13:58:00 -0800 (PST) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12a as permitted sender) client-ip=2607:f8b0:4864:20::12a; Original-Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-357cf6725acso12712205ab.3 for ; Sat, 11 Nov 2023 13:58:00 -0800 (PST) X-Received: by 2002:a92:c268:0:b0:359:4376:6615 with SMTP id h8-20020a92c268000000b0035943766615mr3740303ild.30.1699739880461; Sat, 11 Nov 2023 13:58:00 -0800 (PST) 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=20230601 header.b=Ehniqq2E; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12a 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:33303 Archived-At: --000000000000c91dda0609e787d7 Content-Type: text/plain; charset="UTF-8" Thanks William, this will certainly come in handy, however I was asking about linking to specific *definitions*, not *terms*, i.e. in the case where I have multiple definitions for a single term, I'd like to be able to link to only one of them from another definition or from the main body of my document.... On Mon, 6 Nov 2023 at 16:02, 'William Lupton' via pandoc-discuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > You can use bracketed spans > to do this > manually, as in: > > [Term 1]{#term-1} > ... > Reference to [Term 1](#term-1). > > We use an *auto-identifiers.lua* filter that I could probably add to > pandoc-ext . This will auto-derive the > identifiers from the span content. This allows you to write this: > > [Term 1]{} > ... > Reference to [Term 1](). > > or this (the t: is used as a prefix): > > [Term 1]{#t:} > ... > Reference to [Term 1](#t:). > > The latter example generates this HTML. > >
Term 1
> ... >

Reference to Term 1.

> > On Mon, 6 Nov 2023 at 12:14, A A wrote: > >> Pandoc will convert the following markdown: >> >> Term 1 >> >> : Definition 1 >> >> : Definition 2 >> >> Term 2 >> >> : Definition 1 >> >> To the following HTML: >> >>
>>
Term 1
>>
>>

Definition 1

>>
>>
>>

Definition 2

>>
>>
Term 2
>>
>>

Definition 1

>>
>>
>> >> How easy/straightforward is it to assign identifiers to specific >> *definition* items in markdown? For example such that the resulting HTML >> looks like the following: >> >>
>>
Term 1
>>
>>

Definition 1

>>
>>
>>

Definition 2

>>
>>
Term 2
>>
>>

Definition 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/CAMwawgNTwDo55QU5dZsgeXQpG9jAr1_RevLPdshEjFgqyF%3DgLQ%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/CAEe_xxiyw7-04ghifFmDDv3XH0rBVL-WszRX44%3D27Q_OP%2BXSnA%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/CAMwawgMn0hHWHAk7wAk0GYFrjgh%3Do5R3yhZjB5kSpcNxWhvb%3DA%40mail.gmail.com. --000000000000c91dda0609e787d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks William, this will certainly come in handy, however= I was asking about linking to specific *definitions*, not *terms*, i.e. in= the case where I have multiple definitions for a single term, I'd like= to be able to link to only one of them from another definition or from the= main body of my document....

On Mon, 6 Nov 2023 at 16:02, 'William Lup= ton' via pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:
You can use=C2=A0bracketed spans to do this manually, as in:

<= div>[Term 1]{#term-1}
...
Reference to [Term= 1](#term-1).


We use an auto-identif= iers.lua filter that I could probably add to pandoc-ext. This will=C2=A0auto-deriv= e the identifiers=C2=A0from the span content. This allows you to write this= :

[Term 1]{}
...
Re= ference to [Term 1]().


or this (the t: = is used as a prefix):

[Te= rm 1]{#t:}
...
Reference to [Term 1](#t:).


<= /div>
The latter example generates this HTML.

= <dt><span id=3D"t:term-1">Te= rm 1</span></dt>
...
<p>Reference to <a href=3D&= quot;#t:term-1">Term 1</a>.</p>

<= br>
On Mon,= 6 Nov 2023 at 12:14, A A <amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Pandoc will convert the following markdown:

Ter=
m 1

: Definition 1

: Definition 2

Term 2

: Definition 1

To the following HTML:

<=
;dl>
<dt>Term 1</dt>
<dd>
<p>Definition 1</p>
</dd>
<dd>
<p>Definition 2</p>
</dd>
<dt>Term 2</dt>
<dd>
<p>Definition 1</p>
</dd>
</dl>

How easy/straightforward is = it to assign identifiers to specific definition items in markdown?= For example such that the resulting HTML looks like the following:

<=
;dl>
<dt>Term 1</dt>
<dd id=3D"def-1-term-1">
<p>Definition 1</p>
</dd>
<dd>
<p>Definition 2</p>
</dd>
<dt>Term 2</dt>
<dd>
<p>Definition 1</p>
</dd>
</dl>

--
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/CAMwawgNTwDo55QU5= dZsgeXQpG9jAr1_RevLPdshEjFgqyF%3DgLQ%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://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxiyw7-04= ghifFmDDv3XH0rBVL-WszRX44%3D27Q_OP%2BXSnA%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://gro= ups.google.com/d/msgid/pandoc-discuss/CAMwawgMn0hHWHAk7wAk0GYFrjgh%3Do5R3yh= ZjB5kSpcNxWhvb%3DA%40mail.gmail.com.
--000000000000c91dda0609e787d7--