Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Recommend anonymous hyperlinks
  • Loading branch information
hugovk committed Nov 29, 2025
commit 1be108a8516d4ea86f2152581b3d9c2a064c99db
9 changes: 6 additions & 3 deletions documentation/markup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ attribute definitions ``.. attribute: `attr-name``` :ref:`inform
attribute references ``:attr:`attr-name``` :ref:`roles`
reference labels ``.. _label-name:`` :ref:`doc-ref-role`
internal references ``:ref:`label-name``` :ref:`doc-ref-role`
external links ```Link text <https://example.com>`_`` :ref:`hyperlinks`
external links ```Link text <https://example.com>`__`` :ref:`hyperlinks`
roles w/ custom text ``:role:`custom text <target>``` :ref:`roles`
roles w/ only last part ``:role:`~hidden.hidden.visible``` :ref:`roles`
roles w/o link ``:role:`!target``` :ref:`roles`
Expand Down Expand Up @@ -185,9 +185,12 @@ Hyperlinks
External links
^^^^^^^^^^^^^^

Use ```Link text <http://target>`_`` for inline web links. If the link text
Use ```Link text <https://example.com>`__`` for inline web links. If the link text
should be the web address, you don't need special markup at all, the parser
finds links and mail addresses in ordinary text.
finds links and mail addresses in ordinary text. Prefer anonymous hyperlinks
(with a double underscore) over named hyperlinks (with a single underscore)
to avoid target name clashes.


Internal links
^^^^^^^^^^^^^^
Expand Down