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.<dt><span id="t:term-1">Term 1</span></dt>
...
<p>Reference to <a href="#t:term-1">Term 1</a>.</p>--On Mon, 6 Nov 2023 at 12:14, A A <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:
<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="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 "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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-/JYPxA39Uh5TLH3MbocFFw@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.