From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33307 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: Sun, 12 Nov 2023 11:13:24 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008304520609f1ce02" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30646"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBUWKYKVAMGQEZPLYSGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 12 11:13:43 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f187.google.com ([209.85.160.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r27TJ-0007l4-TU for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 12 Nov 2023 11:13:42 +0100 Original-Received: by mail-qt1-f187.google.com with SMTP id d75a77b69052e-421ace48f00sf26778941cf.2 for ; Sun, 12 Nov 2023 02:13:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699784020; cv=pass; d=google.com; s=arc-20160816; b=wliSwkXTE8gPr//5qO9wRN9pHpYnI8vG/0du1DJTfSLaMAYo9j9nzWQ9cu4NdzJaOy GEGgyTqmAdIxc/9V7JiXUuC1b40WFl6wC0u4Om/DBpifNkkR2or2XcIStVD4Dtt2oyn6 NA9eUcLUPTMS9zkAdS3PS9wg2fvEQdggkQIO3cWehonRrzAcFDCN6HjVoOXKJecWJPAl Zy2gIHcHV9Fn1b5Z0MhHfO/DHM0n5v7XsgsXIs5uzvGP3gwZFqHRaj/5fan4OVdIYhqm 3hbn8sbLpO5Rts+ojCfbYl/hHMYsIel3/a8xxIjXLby7n6j6EJiteOwcwUQD1ww827xK NY3w== 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=76Uj0wyU8aub3h7+uh8Ln65N8XiBSOKQk4F7L56UO9o=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=SYIpByuF4/CtvsEzK0q2pb3OR8mgh+H1A8nrin0Pk4LbK8tB1QHqjso52YdJ9D1802 PfgnRGAkcVr3laTC76vbtWpDcgCr9DcT+SfoPpEVCv0gTxc4GYQ8SSlizr1tpt6fbMf5 VEuzzFShV+4lq4godpFPA7zckI+r98zLPQ11e+PxcJoqB+n4f996/PZ+iFKh9JMZKHJX oRL+E5aCNiMOMavL46FsIaN4uYGsLdGrvLZqHE9/hOhqjXToGPdqkGRxnOAR+cVFatMK Fl5IaVgkOEdNf68j6H+TgdG+PmLXJEnvaQWznsOs1IxBXBniJIJbJlRAlKJPnMJ5RUnt QqhA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bcO4VEAx; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 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=1699784020; x=1700388820; 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=76Uj0wyU8aub3h7+uh8Ln65N8XiBSOKQk4F7L56UO9o=; b=r8ElwE9qNDAqvZqWv9IFz2qVzMzfgEJmYiAP7WBOx1ntYAsmqahR29ThTmPddKHVuC EvGJtzdJaGyLf0vDYBLZKiJWENyXxeVqR7DbQLIyVHGnliD96oBQbMAmNUnXfdfBhwfS KQzZ7iaT6S6VfAx6WFqwJRCqeW4//hQLfEHYnnMV8ofttMA7AJA1s1hz7CAcx7WSU5Yv Z1IZIsho0IdKxCaJOO8z0wwUtlOnVccESqJg6vnz/IdhXAdY7zq1LJJ9Us0aEk7Px5cE cBR4Vp40Cdfc0EX+tJqxbOeAv9uzQN+Ux7TmvblLlHG8QRYHD4U4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699784020; x=1700388820; 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=76Uj0wyU8aub3h7+uh8Ln65N8XiBSOKQk4F7L56UO9o=; b=CoSR75nTEshuetR7qlxSiLNos95L1X+YR2IYjdezf0Rd7+ISq8/uNIJwftxhqH9LlL Lp51rWSh7SSUfmK6XsWmkfxBxaIGqFYG3N9mWiWyUhnlrEA/Y20iA2e4V53M2MeG8LDG OtnQI+02WzDAYvnL26l80jXzETSVYa5oTt20/5AyspQqS3DEC5bTrqCEnluO3sfT0sVf AkoQq9g0v6kx3Go0HqZuoEOh41PYCN7lqwExCo326oGB0TofDn7ynZajhZXXvmfiE08o Uk5lYsKzerBuCWJFisDGxPdPfiYey1HlJXaFFn24AwZI2b9VesU3sATo0AEHGyDooO X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699784020; x=1700388820; 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=76Uj0wyU8aub3h7+uh8Ln65N8XiBSOKQk4F7L56UO9o=; b=W3UR1oQHLQSb7XOaFKraaiGTYfPFaqMA/CREIMw2KtFn1RryKXQBQI37aRP8fMFwk1 ni0RnrulO1Vja7qBYu91CJUg9lhsz4KomFKvZIMWG7YS24kgdye87rbKa9zHhw7PfYDA KKqCXMMfzOinZfD151f49Ybfaam1mMcZPcyHZPqGXZ1Vz6MyFL2sioGKcoNx7z2oRpOF urjNjJa5oF4aYHSVWJaKfKrrT8K+fLf814TCPOg/zz016VFlh6hmCTg8vhSvQkPy4yR8 k/vy6J Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YyL3cI6iy+ce65hXo5nVht+LifAr4TLx2R/ewqI9Fw4vo7yhyC1 BhKpQHQaNMJ6bdIS0Lvdpt4= X-Google-Smtp-Source: AGHT+IHWlBPpeezA93E9ArWPwGZbw+CnQrwmxPebk51z0laIuncGnSLQPhjgtn3cd9n+RUJobLEbXg== X-Received: by 2002:a05:622a:3d4:b0:41e:1974:7cf1 with SMTP id k20-20020a05622a03d400b0041e19747cf1mr4222803qtx.18.1699784020694; Sun, 12 Nov 2023 02:13:40 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:622a:1901:b0:41f:8144:ee63 with SMTP id w1-20020a05622a190100b0041f8144ee63ls2418065qtc.1.-pod-prod-01-us; Sun, 12 Nov 2023 02:13:37 -0800 (PST) X-Received: by 2002:a05:622a:1a02:b0:417:cdc5:847a with SMTP id f2-20020a05622a1a0200b00417cdc5847amr6486824qtb.39.1699784017627; Sun, 12 Nov 2023 02:13:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699784017; cv=none; d=google.com; s=arc-20160816; b=lloX69EOSLb2poES3vv9vA1tWxJvM2f970gfaaTigCB/JICEN8scVxOJuo743mOV+J xed3ACpxhhRVMOeOr+bkffmyQFBLuk/d5LcetrEjU3xn6RMx/pQA5G2uNGb0p9Woj4aB cGZxshl/5Kho3QdOf5jFIl6GZLNcouh7FvrHnfEtVfwwj5SgWJPfc1TP/divP45LIIlQ 45bZINt14MObwFxo0DJ1T93CZDHczIanJ0ye+D571pK8b3fTyv4UJ+pXdWGbkXY2k0uZ W1K2cSBgoylIc5prHVJPCUkrlFRZVn9g8DzuNyW3AIEmsVhe4kOpKoKIPqcG9nW8GhOj jblw== 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=LWSsyfbsdJ7du5OhDfYOD5KKKqNLy8dYP11JF5VUAq4=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=uHquGRGf+/WigGNPy0tvCr408IslqUZ3IJCEJyroW7IWHZsAmgm9X/So+vAliCraVq WO83PzTPjlA+ZI3Zx7szbzHfeIHqZa826SJNfOxrA5psVf7lhfPcOFMIjAWEa6q32O9d 9ROJBDUddhMtZ/P3Ji/L8I5Uj9I3wHzmaN5KFmJ5BJj88toSjRCs6Z37GaNN2xz0kE59 U1klHXhgFhV11Uj/D4GY1sdeV++7HJ+6jBXW5GDvU45fjN9sWAyCqBSvtxIqYo9PxqBN taOeVMBRsMBhaVU+O0RD55TMT7Rf7LpcFYtBm970YllM++DZB+stFFOW96LInIBO13lK yDNw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bcO4VEAx; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 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-ot1-x329.google.com (mail-ot1-x329.google.com. [2607:f8b0:4864:20::329]) by gmr-mx.google.com with ESMTPS id ay29-20020a05622a229d00b0041ce9eb6295si460963qtb.1.2023.11.12.02.13.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 02:13:37 -0800 (PST) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 as permitted sender) client-ip=2607:f8b0:4864:20::329; Original-Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6ce2de8da87so2188278a34.1 for ; Sun, 12 Nov 2023 02:13:37 -0800 (PST) X-Received: by 2002:a05:6870:3051:b0:1ea:69f6:fe09 with SMTP id u17-20020a056870305100b001ea69f6fe09mr5816836oau.10.1699784016723; Sun, 12 Nov 2023 02:13:36 -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=bcO4VEAx; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 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:33307 Archived-At: --0000000000008304520609f1ce02 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Nevermind sorry. Please disregard my last reply. The anchor link works fine= . On Sun, 12 Nov 2023 at 11:05, A A wrote: > Ok, thanks for that, but when I try to convert something like the > following: > > [USA]{#usa} > : United States of America > > The resulting HTML looks like this: > >
USA
>
> United States of America >
> > The hash symbol gets dropped which basically makes that span useless as > the target of an anchor link. I think I=E2=80=99m probably still doing so= mething > wrong but I=E2=80=99m not sure what. > > On Sat, 11 Nov 2023 at 23:57, Bastien DUMONT bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org > wrote: > > Same thing, but on the definition: >> >> Term 1 >> >> : Definition 1 >> >> : [Definition 2]{#t1-def2} >> >> Term 2 >> >> : Definition 1 >> >> Here Term 1 has [this meaning](#t1-def2). >> >> You will not get the id on the
element directly, but on a >> inside
. >> >> Le Saturday 11 November 2023 =C3=A0 10:57:48PM, A A a =C3=A9crit : >> > Thanks William, this will certainly come in handy, however I was askin= g >> 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 <[1] >> > pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: >> > >> > You can use [2]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 >> [3] >> > 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 <[4]amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> 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 specif= ic >> > 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 [5]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit [6] >> 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 [7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit [8] >> 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 [9]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit [10] >> https://groups.google.com/d/msgid/ >> > pandoc-discuss/ >> > CAMwawgMn0hHWHAk7wAk0GYFrjgh%3Do5R3yhZjB5kSpcNxWhvb%3DA% >> 40mail.gmail.com. >> > >> > References: >> > >> > [1] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > [2] https://pandoc.org/MANUAL.html#extension-bracketed_spans >> > [3] https://github.com/pandoc-ext >> > [4] mailto:amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> > [5] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > [6] >> https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgNTwDo55QU5dZsgeX= QpG9jAr1_RevLPdshEjFgqyF%3DgLQ%40mail.gmail.com?utm_medium=3Demail&utm_sour= ce=3Dfooter >> > [7] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > [8] >> https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxiyw7-04ghifFmDDv= 3XH0rBVL-WszRX44%3D27Q_OP%2BXSnA%40mail.gmail.com?utm_medium=3Demail&utm_so= urce=3Dfooter >> > [9] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > [10] >> https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgMn0hHWHAk7wAk0GY= Frjgh%3Do5R3yhZjB5kSpcNxWhvb%3DA%40mail.gmail.com?utm_medium=3Demail&utm_so= urce=3Dfooter >> >> -- >> 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/ZVAG4DKHakT2qzn6%40loca= lhost >> . > > >> --=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/CAMwawgM3gEOSrSQFvE9k2_6%2BJ%3DgmvW0MP6bo6dXVBvNNagufTQ%40ma= il.gmail.com. --0000000000008304520609f1ce02 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nevermind sorry. Please disregard my last reply. The ancho= r link works fine.

On Sun, 12 Nov 2023 at 11:05, A A <amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Ok, thanks for tha= t, but when I try to convert something like the following:

[US=
A]{#usa}
: United States of America

The resulting HTML looks lik= e this:

<=
;dt><span id=3D"usa">USA</span></dt>
<dd>
United States of America
</dd>

The hash symbol gets dropped= which basically makes that span useless as the target of an anchor link. I= think I=E2=80=99m probably still doing something wrong but I=E2=80=99m not= sure what.

On Sat, 11 Nov 2023 at 23:57, Bastien DUM= ONT b= astien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org wrote:

Same thing, but on the definition:

Term 1

: Definition 1

: [Definition 2]{#t1-def2}

Term 2

: Definition 1

Here Term 1 has [this meaning](#t1-def2).

You will not get the id on the <dd> element directly, but on a <sp= an> inside <dd>.

Le Saturday 11 November 2023 =C3=A0 10:57:48PM, A A a =C3=A9crit :
> Thanks William, this will certainly come in handy, however I was askin= g 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 lin= k 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-discu= ss <[1]
> p= andoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:
>
>=C2=A0 =C2=A0 =C2=A0You can use=C2=A0[2]bracketed spans to do this manu= ally, as in:
>
>=C2=A0 =C2=A0 =C2=A0[Term 1]{#term-1}
>=C2=A0 =C2=A0 =C2=A0...
>=C2=A0 =C2=A0 =C2=A0Reference to [Term 1](#term-1).
>
>=C2=A0 =C2=A0 =C2=A0We use an auto-identifiers.lua filter that I could = probably add to [3]
>=C2=A0 =C2=A0 =C2=A0pandoc-ext. This will=C2=A0auto-derive the identifi= ers=C2=A0from the span content.
>=C2=A0 =C2=A0 =C2=A0This allows you to write this:
>
>=C2=A0 =C2=A0 =C2=A0[Term 1]{}
>=C2=A0 =C2=A0 =C2=A0...
>=C2=A0 =C2=A0 =C2=A0Reference to [Term 1]().
>
>=C2=A0 =C2=A0 =C2=A0or this (the t: is used as a prefix):
>
>=C2=A0 =C2=A0 =C2=A0[Term 1]{#t:}
>=C2=A0 =C2=A0 =C2=A0...
>=C2=A0 =C2=A0 =C2=A0Reference to [Term 1](#t:).
>
>=C2=A0 =C2=A0 =C2=A0The latter example generates this HTML.
>
>=C2=A0 =C2=A0 =C2=A0<dt><span id=3D"t:term-1">Ter= m 1</span></dt>
>=C2=A0 =C2=A0 =C2=A0...
>=C2=A0 =C2=A0 =C2=A0<p>Reference to <a href=3D"#t:term-1&= quot;>Term 1</a>.</p>
>
>=C2=A0 =C2=A0 =C2=A0On Mon, 6 Nov 2023 at 12:14, A A <[4]amine.aboufirass@gmail= .com> wrote:
>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Pandoc will convert the following mar= kdown:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Term 1
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Definition 1
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Definition 2
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Term 2
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Definition 1
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To the following HTML:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dl>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dt>Term 1</dt>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<p>Definition 1</p>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<p>Definition 2</p>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dt>Term 2</dt>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<p>Definition 1</p>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dl>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0How easy/straightforward is it to ass= ign identifiers to specific
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0definition items in markdown? For exa= mple such that the resulting HTML
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0looks like the following:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dl>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dt>Term 1</dt>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dd id=3D"def-1-term-1"&= gt;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<p>Definition 1</p>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<p>Definition 2</p>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dt>Term 2</dt>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<p>Definition 1</p>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dd>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</dl>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You received this message because you= are subscribed to the Google
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Groups "pandoc-discuss" gro= up.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and st= op receiving emails from it, send
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0an email to [5]pandoc-discuss= +unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To view this discussion on the web vi= sit [6]https://groups.google.com/d
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CAMwawgNTwDo55QU5dZsgeXQpG9jAr1_RevLP= dshEjFgqyF%3DgLQ%40mail.gmail.com.
>
>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0You received this message because you are subscribe= d to the Google Groups
>=C2=A0 =C2=A0 =C2=A0"pandoc-discuss" group.
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and stop receiving e= mails from it, send an
>=C2=A0 =C2=A0 =C2=A0email to [7]pandoc-discuss+unsubscribe@goog= legroups.com.
>=C2=A0 =C2=A0 =C2=A0To view this discussion on the web visit [8]http= s://groups.google.com/d/
>=C2=A0 =C2=A0 =C2=A0msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0CAEe_xxiyw7-04ghifFmDDv3XH0rBVL-WszRX44%3D27Q_OP%2B= XSnA%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to the Google Gro= ups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email
> to [9]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit [10]https://groups.g= oogle.com/d/msgid/
> pandoc-discuss/
> CAMwawgMn0hHWHAk7wAk0GYFrjgh%3Do5R3yhZjB5kSpcNxWhvb%3DA%40mail.gmail.com= .
>
> References:
>
> [1] mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://pandoc.org/MANUAL.html#exte= nsion-bracketed_spans
> [3] https://github.com/pandoc-ext
> [4] mailto:amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> [5] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [6] http= s://groups.google.com/d/msgid/pandoc-discuss/CAMwawgNTwDo55QU5dZsgeXQpG9jAr= 1_RevLPdshEjFgqyF%3DgLQ%40mail.gmail.com?utm_medium=3Demail&utm_source= =3Dfooter
> [7] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [8] ht= tps://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxiyw7-04ghifFmDDv3XH0r= BVL-WszRX44%3D27Q_OP%2BXSnA%40mail.gmail.com?utm_medium=3Demail&utm_sou= rce=3Dfooter
> [9] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [10] h= ttps://groups.google.com/d/msgid/pandoc-discuss/CAMwawgMn0hHWHAk7wAk0GYFrjg= h%3Do5R3yhZjB5kSpcNxWhvb%3DA%40mail.gmail.com?utm_medium=3Demail&utm_so= urce=3Dfooter

--
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/ZVAG4DKH= akT2qzn6%40localhost.


--
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/CAMwawgM3gEOSrSQFvE9k2_6%2BJ%3DgmvW0M= P6bo6dXVBvNNagufTQ%40mail.gmail.com.
--0000000000008304520609f1ce02--