How do you format text within a denoted link in reStructuredText?
Specifically, I wish to generate the following HTML from my rst:
<a href="http://docs.python.org/library/optparse.html"><tt>optparse.OptionParser</tt> documentation documentation</a>
The result should look like this:
optparse.OptionParser
documentation
where the "optparse.OptionParser" portion is in fixed-width font.
I tried
```optparse.OptionParser`` <http://docs.python.org/library/optparse.html>`_
however, this gave
<tt class="docutils literal">`optparse.OptionParser</tt> documentation <<a class="reference external" href="http://docs.python.org/library/optparse.html">http://docs.python.org/library/optparse.html</a>>`_
which looks like this
``optparse.OptionParser
documentation
<http://docs.python.org/library/optparse.html>
_
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…