1.16. Hyperlink¶
The link text is set by putting a _
after some text. The `
is used
to group text, allowing you to include multiple words in your link text.
You should use the `
, even when the link text is only one word. This
keeps the syntax consistent.
The link target is defined inline or at the bottom of the section with
.. _<link text>: <target>
(reference style).
The Hyperlink Targets in Docutils provides the basic specification for external and anonymous hyperlink targets. These are also called explicit hyperlink targets.
- the example
1 2 3
`A cool website`_ and `The Dino <https://docutils.sourceforge.io/>`_. .. _A cool website: https://www.sphinx-doc.org/
- which gives
A cool website and The Dino.