Re: Multiple anchors/ids for description list item (glossary pluralization)
Posted by
oddhack on
May 22, 2020; 2:50pm
URL: https://discuss.asciidoctor.org/Multiple-anchors-ids-for-description-list-item-glossary-pluralization-tp8036p8038.html
habamax wrote
I don't think <<term>> would link to [[terms]]. And actually that is why
it is rendered as [term] in your html.
Interesting. I see different behavior between command-line client 2.0.10 and Asciidoctor.js Live Preview 2.5.0. The former does as you say but the latter does have both link to the glossary entry.
>
> Are there better / different options that allow interchangeable use of
> the singular and plural terms to link to the same glossary term?
> Writing a Ruby macro is off the table learning curve-wise.
>
Why wouldn't you use [[term, terms]] and use <<term>> to show urls as
terms?
Because it does entirely the wrong thing? If I say
<<term>>, <<terms>>
[[term,terms]]term:: A term
then the rendered result is
[term], term
of which the first link is broken, and the second is not pluralized.