rst link to glossary term with subscript

425 Views Asked by At

I have a sphinx glossary term like this with a replace to use subscripts for proper formatting.

|VOH|
   Minimum output voltage representative of a logic 1

.. |VOH| replace:: V\ :sub:`OH`\

How can I properly reference this term from elsewhere in my docoument also with the proper subscript formatting? The seemingly obvious attempt below doesn't work with the replace inside the backticks.

:term:`|VOH|`
1

There are 1 best solutions below

0
On

Your question is close to another, but the answer is the same. You cannot do this in reST alone.

Instead you could drop the replacement, define the term VOH alone, then do post-processing to format the text appropriately.