From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33268 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Assigning identifiers to definition items Date: Mon, 6 Nov 2023 15:02:06 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e27e7606097d2376" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23246"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBB7P7UOVAMGQEVTODY6Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 06 16:02:25 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f59.google.com ([209.85.167.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r017R-0005rU-P5 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Nov 2023 16:02:25 +0100 Original-Received: by mail-lf1-f59.google.com with SMTP id 2adb3069b0e04-5090f6a04e1sf4904172e87.0 for ; Mon, 06 Nov 2023 07:02:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699282945; cv=pass; d=google.com; s=arc-20160816; b=omfBpAVylTfouIIE6hdKn7BVsKycZthRnnI9FnmQRbaoredD49YptgA5BAjsoCsuEL 2RHhGNnLkl9TDybHieU9nCe/XlKaYGbRfGZAY/L24xqKUYSGKoQ5NsWldpRNfoznPwMZ 9/JDlGA8tUtVFr0FmicCK6hhlZX/TKkRqk48ggqA0d578upXM7DjXepjwtYRB1B9Brtp DojodCnJXfFz6X/j0jl6KJA53M4vc0a9b+9TNRrQbGZsDtaMP9Sr4zjC+uDlI9QUe2Gi q1GfYn4bNQ9uOCRg+LIEDE/pRFbcpcCfR71c4VDnwPUkDCa0Ms2gRoILz/uo0RJxjh04 T57Q== 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:dkim-signature; bh=r94C5LzTQCvZeTqskxiowSWuqGZP7oMrZc4Cw0GhZX8=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=wnD9tjaXs+4eN4BmfQdEjLxTnIK55y6/BtHvDOtCa2hm0qtlI4xkpyFvo8+nHjgEor ZXKg/VfbgY+cUFg1hVdcIJykusaES30ts9I5WNaf2YsJhvcZpAwmASk3gu18O20xe6qh xOSl4Gsizn9LrRYMwGlKEsbIfr6vaAUzLR9nFv4OkegCUhEPv0D9YOf8qNq5aw11cnw2 ahoMl5TM2gbY5CU9klbKYZZCryPS3ThulAqZg/YxZWBcnpitQEz1VUinGWfZc7n40KfV 0xBi8FPMaCLKBVy29kCI9Ob2JV+b4Utw2PfWZfw6gnlsNKtZwnnvjARpQ+/xa3lnKsRL ejIA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=c9uadc9f; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699282945; x=1699887745; 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=r94C5LzTQCvZeTqskxiowSWuqGZP7oMrZc4Cw0GhZX8=; b=TU2DEFrOPZR5SgH1/21NG6R1yLhfnJEWK3RXX1+Vy4Hv1tj9k6rBshU6jGfQY1xqHo GV/CXIFj8n0JcNNNM6eLCA1oeFhzylp1nItklK4yG+yHnpjkhBuuZS/RNqv3ygeFRdDj VnxvCEp7eg/vr2hfgMMOalJ4PzsQxL+zJ/ghP4Pb0qIl6LAVlO0x8N0ee/yThasW625q 6ce7Dn+CkG1Gay/CbIhbS4WG8T3bSMXsqlirTFPr0kQftuCurm2U/EkiW1MkdthnaHB6 ay8eriYhP6bKQpOAoRzMYoMzcf4sWoKs1QNBIFA5qOBeIkH8YqPqI0RVMlH X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699282945; x=1699887745; 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:from:to:cc:subject:date:message-id :reply-to; bh=r94C5LzTQCvZeTqskxiowSWuqGZP7oMrZc4Cw0GhZX8=; b=ET/z51yD72M+N5lC7LPvhNQxUQzHP4q2HXHj4vOdd252WJvbv9z3G7GPPtxuMuw3yp lGoKEdnZ+SOtKX9olqiJkUeakzFGNdVnk3XIVLDNJVsp3Gqvmmghk0BJoRRLMbY9TM8o JSMIWhXRq2KQdTMs5N/pass6c7UqmSrIlvQ1M2v026lBLMhWIMrJcs2NMo7aIrAaj6tb HJx1ESEFxfOljLWCbluf4Dx/1F1BPkVMABcS63tZelwYj789l/AP0uVRIv6vDojSkdK6 wvQCzQdvAk3Bs X-Gm-Message-State: AOJu0Yyi+Q0gasn0JW3kCgROjVb/6agNdtDI/VlX/zwmJq5mTy6Q4x5Q OrOnDTX4o8mTbVhIeVUyZ18= X-Google-Smtp-Source: AGHT+IFA7ISHsdT+GK+yBbtN8QBOvJTCEHUuxmuglWjttNEHtDC7iiTqowT83FFyLJQ9IEotpvaQ4g== X-Received: by 2002:a05:6512:2396:b0:503:343a:829f with SMTP id c22-20020a056512239600b00503343a829fmr28956609lfv.23.1699282944853; Mon, 06 Nov 2023 07:02:24 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:281c:b0:507:999e:6d6a with SMTP id cf28-20020a056512281c00b00507999e6d6als244687lfb.2.-pod-prod-06-eu; Mon, 06 Nov 2023 07:02:19 -0800 (PST) X-Received: by 2002:ac2:4bc6:0:b0:509:38de:9917 with SMTP id o6-20020ac24bc6000000b0050938de9917mr16955936lfq.21.1699282938897; Mon, 06 Nov 2023 07:02:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699282938; cv=none; d=google.com; s=arc-20160816; b=BlgAmVG94GnZnBF/CpWd/JpOwqwhwUFotTBsgMTRwAUesj9mHiAUFxwYmsof26nkDc DdbObKIV2G/Zx6xaucTJ08BYbjIe2OmZAQPsaZK/5bd3G8F+lMZ9vkgVUne9d+7rtsnM WfF/yHtmajEvj7GrGA6u07uu46Ey9jdLfFdSmFeCFfOrdrwat0GIUq4xaz0trke0nefN 623JUuj3KZ9TWTA5HKnLw1HxPOuY+qDZXoTSPW/F8sTwzZ3LNH8KYvUwKsRgJkGkdBph 9C+BrGGD9O+r9m18RyLQGgjsVmwOY+WWmWUuJtqsfyjJ6ttgGn9mtOHFQuABPOu95Ib9 QU3Q== 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=ruDt3DFPmGzx15giMEuv2cImLQKpwqGldHEe/0Mic94=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=oLF/CKi3DfxtEh9UjGZfKU3xE0TiP7OgzjG8XeZBqa85oMwl66BNb1OBaJb84mdsWf oXlmKGf3/4ccR+NEYyB5/N9rdgJY8A1g4KRYimIwiGOYyjFgvzepPQac3mO0QZsDXcDY HGHYy+zBIXylBtaOvW5DsvxBUvfvnaucdalJxYP59AgBX4y/7+6sk8C9WxI22Rv8rrVA k/Nmfj+pnFSN0BBRQfwI0d0ylLC6f43QdvTSNlfnfVaymo/bhBc84uqUE1RyHeboA8T8 3oQyo7nDHVuy/yEb1AvErrUGXh3MjiI6Wad9NORJYyS1oOOtemAM9a49+8YkE1jZ5hT6 N/xg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=c9uadc9f; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com. [2a00:1450:4864:20::531]) by gmr-mx.google.com with ESMTPS id b14-20020a0565120b8e00b0050946d339d1si494899lfv.6.2023.11.06.07.02.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 07:02:18 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) client-ip=2a00:1450:4864:20::531; Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-53e751aeb3cso7512653a12.2 for ; Mon, 06 Nov 2023 07:02:18 -0800 (PST) X-Received: by 2002:aa7:cb16:0:b0:526:9cfb:c12 with SMTP id s22-20020aa7cb16000000b005269cfb0c12mr22670107edt.38.1699282937865; Mon, 06 Nov 2023 07:02:17 -0800 (PST) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=c9uadc9f; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:33268 Archived-At: --000000000000e27e7606097d2376 Content-Type: text/plain; charset="UTF-8" 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. --000000000000e27e7606097d2376 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You can use=C2=A0bracketed spans to do this manually, as in:=

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


We use an= auto-identifiers.lua filter that I could probably add to pandoc-ext. This will=C2=A0auto-derive = the identifiers=C2=A0from the span content. This allows you to write this:<= /div>

[Term 1]{}
...
Refe= rence 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.

<dt><span id=3D"t:term-1">Term= 1</span></dt>
...
<p>Reference to <a href=3D&qu= ot;#t:term-1">Term 1</a>.</p>
On Mon, 6= Nov 2023 at 12:14, A A <a= mine.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 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/CAEe_xxiyw7-04ghifFmDDv3XH0rBVL-WszRX= 44%3D27Q_OP%2BXSnA%40mail.gmail.com.
--000000000000e27e7606097d2376--