John Titor
John Titor

Reputation: 572

Multiple (Nested) Roles in a Glossary

in my Sphinx docs I would like to create a glossary, potentially containing :math:, or other roles:

.. glossary::

    :math:`f(x)`
      Description 

Is there any way to reference this entry with a text that has the same style as the glossary entry?

:term:`f(x)` Works, but is rendered as a plain hyperlink.

I want a hyperlink with the original styling instead:

:term:`:math:`f(x)``        Does not work. 
:term:`:math:`f(x)` <f(x)>` Also doesnt.

Many thanks for the help.

Upvotes: 3

Views: 676

Answers (0)

Related Questions