I am using Sphinx with reStructuredText, and I’d like to include a hyperlink inside an inline literal. However, predictably, if I write
The result has type ``Foo_ -> Bar_``.
.. _Foo:
Information about ``Foo``.
.. _Bar:
Information about ``Bar``.
then Foo_
and Bar_
are not turned into hyperlinks. If I change my document to use a parsed-literal
block, instead
The result has type:
.. parsed-literal::
Foo_ -> Bar_
then I get the hyperlinks I want. However, I don’t want a separate block—I want the code to be inline. Is there any way to do that?