From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33304 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Assigning identifiers to definition items Date: Sat, 11 Nov 2023 22:57:36 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26311"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB2UNYCVAMGQEL4552UQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 11 23:57:51 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f62.google.com ([209.85.166.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r1wvG-0006dP-B7 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 11 Nov 2023 23:57:50 +0100 Original-Received: by mail-io1-f62.google.com with SMTP id ca18e2360f4ac-7a684e7fb78sf297976239f.0 for ; Sat, 11 Nov 2023 14:57:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699743469; cv=pass; d=google.com; s=arc-20160816; b=le/wtNe7TPr1ktbdwLBit9JxQlt916YQ7HxW8m1MJw0wMkty/lixnAHg1LB8RpEQf6 jyJrTKweFwRce/ikfnSqD0xznNSd+BpFSqzEPqboy6YZcDlMO9z/YS6b2BRS68y2yss8 Iv9GV0mGWpcBRebYtQ4iFhD+I4IxCQ+yPKvURTfeiyBYdZoNSnYThrXNZGSD4oOLrXpx 7X5YXHTYGNyTVkMfz3q+LAl3GfhMb8VNaZBXTYCP0h9gF3UrUPKHbOUP/Hdw4MR4+deh +WJr3z6gzN7G0LVGFib8hLdYqlBu9lzeJB5zdwLB/z9LWHibtpXcmg3ZBMc/eo3Zq0Lx 6vtA== 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 :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=+keA6Cb4X6W41WHUUP1bgOkpNHH3N7oQWOqffPbA9fM=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=wvhclpBC3KvoxlmASkFcZVN2lO7YLUQsnJQyT/S6kuNurn19dLdpOmDKVIr8Hv/UUb 6pr8jYjR3yvGs+vVscGMzlkkE5DkGVNXl7LBaAJ/WpJBL6ld6yhQ12X6hb1pQTpkM2mb Mwj9QRV8poVPtQOXwbWnSSl0NkiLll8ENe8lGqAcD6stj/GvO0FBQtFY/Mp7hqvzv2Ps MMQS1nGxq24L82E1WYUbphriHic9UMm7BqvFbxzzKu3fN4Mq7Jfiq1eh7WmjP3jMdPzn a5AKryj1viTsXpQqrEvwYRV9GKI8oOmmJvOHQ/H5BOnQBKoDtcidqjpgrFw/0i0y8eKj UEeg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YABXUNRN; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699743469; x=1700348269; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=+keA6Cb4X6W41WHUUP1bgOkpNHH3N7oQWOqffPbA9fM=; b=vKUq1mQ6LpgP9bYtdsrHP3zxMpKnCD5B7OFt2ZRHMoeU+4kujNy9yzqr2Hky556NVO Zz7EZDZ2Avcg7S1IFAD9W92VwRFmrU8l76LhifmDxinEP+4Po4wrTuDlpp0cIRwWsJVh StJViAP+D7Xmvu37p9K24vG2JSaw9jvBYPJ/upK/WgrUBWrzjSadiFnB0Dhgd9+tezxy Bz0wnCPninfITGMfLkElX+dPKGpH+I4Itb6bqrP6La6X7ZSTiRBbSwXuDONNQAeCHxDx X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699743469; x=1700348269; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=+keA6Cb4X6W41WHUUP1bgOkpNHH3N7oQWOqffPbA9fM=; b=vjXpe2cqLMU/f05fuuKHKMQjQ4f8veoPKQ7/GaWSxGf9w2asLhK550RzwenCWi2/El IHhi90+YsBmLEJnpDsbU/A2075FtYxeMo/42aca/Kbbu5PlHNASkQjeDYZFuSjzn9MCt i8b7k1YkfBVPaCQ+o1g5aetg3FNCX1wHbghkklmILf/i9jhNc+pGv4gjkpgw6Jkr0fQp L3UBRwFRHP/k9E914CrNDUyiVPAs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yx1ggg5MDPbnSAcT8MbLbEFyTcvn5LGMKK+txGkhrxKMRxziiOr sLoQIb4cPrMZWWqguD7XDms= X-Google-Smtp-Source: AGHT+IHLdxUiVXkN+VYKnLY4WJM8UkBQM8+UJK925CaaEjGHMir6ArbwIpw6j1OiT9xxRwXlUL1+GQ== X-Received: by 2002:a05:6e02:18cd:b0:359:3ba1:7745 with SMTP id s13-20020a056e0218cd00b003593ba17745mr5800285ilu.0.1699743469262; Sat, 11 Nov 2023 14:57:49 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:3187:b0:346:64c0:449c with SMTP id cb7-20020a056e02318700b0034664c0449cls91457ilb.0.-pod-prod-02-us; Sat, 11 Nov 2023 14:57:46 -0800 (PST) X-Received: by 2002:a05:6602:15c7:b0:79f:ce11:c1b0 with SMTP id f7-20020a05660215c700b0079fce11c1b0mr4784098iow.6.1699743466168; Sat, 11 Nov 2023 14:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699743466; cv=none; d=google.com; s=arc-20160816; b=WHfcFAb6Ya4C3p73ffPbxMQ2XY0XsLZtF62FKHkTMC+b5Lx/uOUMIAtMxrpZp5Tqqu apwrgozOxKF2mvW63aXyezJhqioo8vF9pYVASQ1SvjsPQb5XSQn5lxYyr2Y62novDj8g Vtyzjc8OfCfTfcGvsqoZsvADHwPM7u2U8hfT4+MkfX6yChgxbPMlnOVLNdPOtSrN2f6T 5OL/FT6lFu1d+0yoJhURN4DUEbLCfEfipftVnJtkE9CBdyiLSRSA/GTfw0PopXjlOBdZ U5fXQOglWGG5GJ//SvbeUCrdq01t15nW12aHVa+UMApXv37A0dmwT6b9BKIHbLTv8tEZ lWcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=Umn746mqPNMIpCESiv2MAUn/IeyN1NTCsOVIa0QAgQ0=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=rTov84LCxkTNxvoXuvAaazGqy2ImNElwr/gjtpwPNPXO/d00XS+rt2XtEXB5u/N9Xl ca8s/58dUOQJ/jD8YRSITnnqJbr3tFBmBWiqmbroyZRI1gG+PJoYqfzQ4Zsy69XCZeNT 4FBA34yisCy8H/xdQPT7J2D45Huzw3IWXft2rg8M2gIDz8Vk8vBluZGV6mkkUO8GtDxn gJO+JsaHRLKn8/ctrFgsi4PiNPLZa9Htl3firiY6QpwyeUbUfsOv7NlJwsZBbTWmv+d2 CXZADI++QWzOP/GoJNsBDb4FsXseYd/hU5GFCknOsjbrfmJaTxKSMBFSbJBW8uxFgsL/ 0b7w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YABXUNRN; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id cp14-20020a056638480e00b00437bda7a9c2si389045jab.2.2023.11.11.14.57.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 14:57:46 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AECD6240027 for ; Sat, 11 Nov 2023 23:57:44 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SSWLJ2jfyz6txG for ; Sat, 11 Nov 2023 23:57:44 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YABXUNRN; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:33304 Archived-At: 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 insid= e
. 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 a= bout > 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 on= ly one > of them from another definition or from the main body of my document.... >=20 > On Mon, 6 Nov 2023 at 16:02, 'William Lupton' via pandoc-discuss <[1] > pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: >=20 > You can use=C2=A0[2]bracketed spans to do this manually, as in: >=20 > [Term 1]{#term-1} > ... > Reference to [Term 1](#term-1). >=20 > We use an auto-identifiers.lua filter that I could probably add to [3= ] > pandoc-ext. This will=C2=A0auto-derive the identifiers=C2=A0from the = span content. > This allows you to write this: >=20 > [Term 1]{} > ... > Reference to [Term 1](). >=20 > or this (the t: is used as a prefix): >=20 > [Term 1]{#t:} > ... > Reference to [Term 1](#t:). >=20 > The latter example generates this HTML. >=20 >
Term 1
> ... >

Reference to Term 1.

>=20 > On Mon, 6 Nov 2023 at 12:14, A A <[4]amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrot= e: >=20 >=20 > Pandoc will convert the following markdown: >=20 > Term 1 >=20 > : Definition 1 >=20 > : Definition 2 >=20 > Term 2 >=20 > : Definition 1 >=20 > To the following HTML: >=20 >
>
Term 1
>
>

Definition 1

>
>
>

Definition 2

>
>
Term 2
>
>

Definition 1

>
>
>=20 > 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: >=20 >
>
Term 1
>
>

Definition 1

>
>
>

Definition 2

>
>
Term 2
>
>

Definition 1

>
>
>=20 > -- > 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 [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.gmai= l.com. >=20 > -- > You received this message because you are subscribed to the Google Gr= oups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, sen= d 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. >=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 [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. >=20 > References: >=20 > [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/CAMwawgNTwDo55QU5dZs= geXQpG9jAr1_RevLPdshEjFgqyF%3DgLQ%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=3Dfooter > [7] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [8] https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxiyw7-04ghifFm= DDv3XH0rBVL-WszRX44%3D27Q_OP%2BXSnA%40mail.gmail.com?utm_medium=3Demail&utm= _source=3Dfooter > [9] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [10] https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgMn0hHWHAk7wA= k0GYFrjgh%3Do5R3yhZjB5kSpcNxWhvb%3DA%40mail.gmail.com?utm_medium=3Demail&ut= m_source=3Dfooter --=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/ZVAG4DKHakT2qzn6%40localhost.