Anonymous hyperlinks in restructuredtext

Lele Gaifax lele at metapensiero.it
Sat May 28 09:54:39 EDT 2016


Sergio Spina <sergio.am.spina at gmail.com> writes:

> I need INTERNAL hyperlink targets, not external...

The difference is in how you use the two kinds of references: a named
hyperlink is referenced with the name followed by a single underscore, while
an anonymous one needs *two* underscores. So you have for example::

  Sample document
  ===============
  
  See reST_ markup reference or `this section`__ below

  .. _rest:  http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets
  __ `Explain how it works`_

  Explain how it works
  --------------------

  This is an example...

Hope this helps,
ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list