Skip to content

Commit

Permalink
fixup! sphinx.ext.extlinks: Clarify escaping of %
Browse files Browse the repository at this point in the history
  • Loading branch information
Merry Bass committed Apr 9, 2021
1 parent c39f147 commit 120daee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/usage/extensions/extlinks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ The extension adds a config value:

To produce a literal ``%`` in either *base URL* or *caption*, use ``%%``::

extlinks = {'wikipedia': ('https://en.wikipedia.org/w/index.php?search=%s&title=Special%%3ASearch&fulltext=Search&ns0=1'
'Search %s on Wikipedia')}
extlinks = {'KnR': ('https://example.org/K%%26R/page/%s',
'[K&R; page %s]')}

You can also use the usual "explicit title" syntax supported by other roles
that generate links, i.e. ``:issue:`this issue <123>```. In this case, the
Expand Down

0 comments on commit 120daee

Please sign in to comment.