From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33308 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:27:04 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000059af6e0609f1ff79" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17569"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBBORYKVAMGQEUPCVYDY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 12 11:27:22 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r27gX-0004JY-GC for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 12 Nov 2023 11:27:21 +0100 Original-Received: by mail-ot1-f62.google.com with SMTP id 46e09a7af769-6d63f6a5abcsf2276616a34.2 for ; Sun, 12 Nov 2023 02:27:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699784840; cv=pass; d=google.com; s=arc-20160816; b=nP/2LbkRWsh4CPAyLOdQa77O/6eYQotiO7uLfUrUyzOHoTD3CyjrLi7RreyOShT0t/ qrAhKU9DnJ+DHCeVQyfBiznm8yxCqb3BzVwi0xU7+n0SaNblDJJiDpJw6wrRIsFWxbWT emoOCVd1s4ybmCyFSfHEq6eBaXBhtJDdaP6gx4Rs5tmjV8JfNFnPTIKRZPJ2iADmwZI+ VRpGG8qn5bS22o7vgjVtDcRwx5H+RhjWwOpP7VOQXhV3HYoIs3Li8N7h4SCMLBJxq+uj RiEbdpkwA3P1WM8nVOclBYTnBhBx7p5jhWEfyTjBMcPlAjDdy9euGtF7BvIwcrY6Cuoc u2Cg== 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=d7DriqR70VrE8D5HQoRP4emplUNz9xUD81G7qODsHY0=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=jaqF8rKWByvCwcCKc//hp0hW9nKCEzjBPauV32UUdLt6FlmS01MTA4q/beEMUdGWfL gqw34vnTYusbheXuvW4vnR9YsxSGgE34M3IRKELdJhaA38w+G3izPc6epXpxh8vLSD+g jTwd1T9aRMW+rZ1uFJszeB8fOH8ctn2jC39r1UC1ogFja/T+OUhzZZECsPvIMaTP4XfH j0N9IWPC3Ox5I46+hQA6YkOqB3g8vURZzXGppmETVGhlkZNwO1cGCF0qiL/xCMw8Uj/p qHSCY0EHez2I/n8sM8UA6yWdwFQc1+cyQwzlpQ+XzQbXzjsqeE6+JR/QALJBYvwfnVXc SmPQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hOXDQ8S0; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::c2e 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=1699784840; x=1700389640; 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=d7DriqR70VrE8D5HQoRP4emplUNz9xUD81G7qODsHY0=; b=GZCdFAZwmn8k9deWHk4tndaXWsHNSrNOTrckVGTg7fNMWAC2b6ayLo3Jb0pjyAIiqc MBtXhz9bpOxY0oTuZQXRjboCe2NrcPEK+QasNTBCm+6WEb/XqqhyKh8T09l/wH0D8f9G V9bGxuGa3vtZ2zyvebNvHEs8Cea1xuwLrbzkTnY07BsvjT9IY/NYYLb+ZC5Uit0RdpNf oGYLXWOTBAnza8zNJNUuy1S9VAZSw4i0wG+iEdQ3SjBrO4vk1VzZqAEDFT8O2/hMI1m3 4jRsnDyOnBpNbNDlfrJ+ldHgEyOy4tOIdaUbBah2WD0iqCIqbU99 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699784840; x=1700389640; 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=d7DriqR70VrE8D5HQoRP4emplUNz9xUD81G7qODsHY0=; b=hiMblomFNi4MeX67dPvLLyTVSHYubN2qh6stsNRqtC9TRQpYfk18g5kAhDIecYQH5O RKomHwkxa73lyzLF0cGzk3DSGzjtCpzSB5Wvg8tCOZyK9LJLSxD8E6JYPvo+Dx5MTj9y prjkQf01aJNVmqlDNi5l7EeTUzouJG3HMmiM6UPNQimh7C+Q3wtsN+zzxaq+qZDlbJv+ Qm0hx4LXlJ5O2518iDkZ6zNIbTi90WdZGH7mLM64wTQJM6ENiirp87Y+ee/jw2GYZXEq 3oEWb8PFhjX+3rDii8Hn/1vdGPaDrexkFZUK8DR431ePct+SuSuLClx7ov8KyA75ze X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699784840; x=1700389640; 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=d7DriqR70VrE8D5HQoRP4emplUNz9xUD81G7qODsHY0=; b=jKbzweEw/I12+IuB8Nmk4uD1/JS3GYj+BoT8a8Z10WkHKADVdcGX9GS8HPkrQyqlHN HvlnCA5yJyL3H/IJubgACQcTVSBpEvd3b8l7aTVVyyEO4g93oDTAM3qO7FUPUeiH1wne n0ZDa5LmSQo0TCLdTWLHRrpS3vQ/xk8yoeCZaxFrmU8tgJeTWck9L33dJs4yjREJBc8m WFj5Qu8ur8+drT/tiUwR3d1m1kkkpl2Yhmchrs0JyPY4EgiI4tCrco+hBrOTab49t3YJ Unxt/9 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YxTF0By4gXECZ7gHSyPJUVIShVCDAajVhhetIvIz7LxAvPrX0VF HE8+ojxzr2zpmVdMFd8pt0Y= X-Google-Smtp-Source: AGHT+IGqhsrhnrPP30mumU0XqLcEoHyCAhH+eAkQE2ze9fLn/B8S5DbTXG68NpKAttpv2cc+N1hBKg== X-Received: by 2002:a9d:684d:0:b0:6d5:4daf:9894 with SMTP id c13-20020a9d684d000000b006d54daf9894mr4284979oto.7.1699784840252; Sun, 12 Nov 2023 02:27:20 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:988f:0:b0:581:dbb0:a5a4 with SMTP id a15-20020a4a988f000000b00581dbb0a5a4ls2980046ooj.0.-pod-prod-07-us; Sun, 12 Nov 2023 02:27:17 -0800 (PST) X-Received: by 2002:a05:6830:1b76:b0:6cf:6837:e4aa with SMTP id d22-20020a0568301b7600b006cf6837e4aamr4404852ote.27.1699784836971; Sun, 12 Nov 2023 02:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699784836; cv=none; d=google.com; s=arc-20160816; b=Ybx+51Y2KvOfnxCQVBlDQxoSeAR9DZZqpJxF7fGNT0iATSQynNWBcPaF2xzjKIVb9p 4h6vvD5GoSrZIBRCTgx7SIZkynad5gF5yOnVq9MkQuX8N3Ir4MHEeC1H9QTft6lz/re0 8vVZObCaJiO4M9GwGoxgjb3hFjY+sHBMA8SEGb8mTfwtVKUykgYbCaNwZYb+3SQzd2kT 2OCmPXhiGIetJvOslKNTLSMnQwHFcQS9/7/aLTnTSVtBVLq2sDUEG/IH3AZ77shp6MS+ 58oEB64KiL/asaKHXAF4ql63xXhR8yhQeKBsINZTlntmPdoKR4Utp+rekHHylxZacjG/ 8tMA== 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=6YbPM9ZepqlKQQpEj8S01ckjKCTh55eny+aUbOeEN34=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=aFIQ9DG5Us0cesEWzUppi/11UoY7X6ftgxeqgiHd4d8xVyqYSRAMD4rUJviSklDl5C eojVqUJwqWMDmsIulGF4bv++6hp54y4WFfPhbSWEFhnCfmP3SvHqAiGdWCjSXIYlu6ay QiUSqPU5MPXuMCrAe0yPXJZc1ZNiJsio1xU5xjoKj7dJ2Uzc+RJjuDv7xksqjunxYeK6 5Yx8E2tpaMMYWwwF63ykNvBbvPsg8GIKN1bMom9+J59WDP0kd5eloRBmBkhAnS5XRLPP gu5UTafzl+bwUtsohV8SrpIHpcjZ5T/WghlqXkalmjLXGKoDsCxZW5wLehguhR0Z785h XwwA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hOXDQ8S0; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::c2e 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-oo1-xc2e.google.com (mail-oo1-xc2e.google.com. [2607:f8b0:4864:20::c2e]) by gmr-mx.google.com with ESMTPS id e20-20020a170902f11400b001cc5b5f692csi162755plb.0.2023.11.12.02.27.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 02:27:16 -0800 (PST) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::c2e as permitted sender) client-ip=2607:f8b0:4864:20::c2e; Original-Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-581fb6f53fcso2139945eaf.2 for ; Sun, 12 Nov 2023 02:27:16 -0800 (PST) X-Received: by 2002:a05:6870:b626:b0:1f0:1b67:3685 with SMTP id cm38-20020a056870b62600b001f01b673685mr5858142oab.30.1699784836098; Sun, 12 Nov 2023 02:27:16 -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=hOXDQ8S0; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::c2e 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:33308 Archived-At: --00000000000059af6e0609f1ff79 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey William, I'd be interested in getting a hold of that filter you mentioned, I can see how it would greatly reduce the amount of bookkeeping required here. I did check in https://github.com/pandoc/lua-filters as well as the link you provided but couldn't find it. I could also technically make my own filter or post-process the resulting document using JS but if you have that filter on hand that would be very helpful. Regards, Amine On Sun, 12 Nov 2023 at 11:13, A A wrote: > 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 s= omething >> 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 >>> asking about >>> > linking to specific *definitions*, not *terms*, i.e. in the case wher= e >>> I have >>> > multiple definitions for a single term, I'd like to be able to link t= o >>> 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 t= o >>> [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 >>> 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 [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 Googl= e >>> 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, sen= d >>> 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/CAMwawgNTwDo55QU5dZsge= XQpG9jAr1_RevLPdshEjFgqyF%3DgLQ%40mail.gmail.com?utm_medium=3Demail&utm_sou= rce=3Dfooter >>> > [7] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>> > [8] >>> https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxiyw7-04ghifFmDD= v3XH0rBVL-WszRX44%3D27Q_OP%2BXSnA%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=3Dfooter >>> > [9] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>> > [10] >>> https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgMn0hHWHAk7wAk0G= YFrjgh%3Do5R3yhZjB5kSpcNxWhvb%3DA%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=3Dfooter >>> >>> -- >>> 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/ZVAG4DKHakT2qzn6%40loc= alhost >>> . >> >> >>> --=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/CAMwawgMH_vudUviXZa8odQ-jyn5Snk3YYGzx4K9to2RBQ_dpOA%40mail.g= mail.com. --00000000000059af6e0609f1ff79 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey William,

I'd be interested in g= etting a hold of that filter you mentioned, I can see how it would greatly = reduce the amount of bookkeeping required here.

I = did check in=C2=A0https:/= /github.com/pandoc/lua-filters as well as the link you provided but cou= ldn't find it. I could also technically make my own filter or post-proc= ess the resulting document using JS but if you have that filter on hand tha= t would be very helpful.

Regards,

Amine

On Sun, 12 Nov 2023 at 11:13, A A <amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
<= /div>
Nev= ermind sorry. Please disregard my last reply. The anchor link works fine.
On= Sun, 12 Nov 2023 at 11:05, A A <amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Ok, thanks for that,= 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://groups.= google.com/d/msgid/pandoc-discuss/CAMwawgMH_vudUviXZa8odQ-jyn5Snk3YYGzx4K9t= o2RBQ_dpOA%40mail.gmail.com.
--00000000000059af6e0609f1ff79--