If I've defined an internal hyperlink target, how can I link to it using arbitrary text as the link title?
For example:
_`This is a very long internal link target`. ... A `short reference`_ to the very long link target.
How could I make the “short reference” target the “very long internal target”?
Edit: Another example:
Widgets ======= ... Use a `widget`_.
How can I make “widget” (singular) link to the “Widgets” (plural) heading?
(of course, I realize that this could be done using `widget`_\s
… But that doesn't solve the general problem)
A pure-reStructuredText method is to define multiple target names for the same target:
(A limitation of this approach is that you may want to use the same text (e.g. "above") for two different locations, and the approach above fails in this case.)
Nicely, mzjn's answer also works for classes:
Hurray!
I haven't found a way to do this using "standard" reST. But with Sphinx, the following works: