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.