mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

Support aliases in glossary directives

Open agoose77 opened this issue 1 year ago • 0 comments
trafficstars

Proposal

Sphinx's glossary directive supports aliases:

.. glossary::

   Term A
   Term B
     This is a definition

It would be nice to support this feature without introducing new esoteric syntax that only works in glossaries.

@rowanc1 and I had a meeting in which the following syntax was proposed:

:::{glossary}
Term A
: This is a definition

Term B
: {term}`Term A`
:::

This uses the {term} role to indicate that Term B is an alias of Term A.

agoose77 avatar Apr 17 '24 17:04 agoose77