From 120daeea33e3b49ed825115a66ab4375de56e94c Mon Sep 17 00:00:00 2001 From: Merry Bass <79108256+merrybass@users.noreply.github.com> Date: Fri, 9 Apr 2021 10:30:57 +0000 Subject: [PATCH] fixup! sphinx.ext.extlinks: Clarify escaping of ``%`` --- doc/usage/extensions/extlinks.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/usage/extensions/extlinks.rst b/doc/usage/extensions/extlinks.rst index 2ef4d6b55..221b79d99 100644 --- a/doc/usage/extensions/extlinks.rst +++ b/doc/usage/extensions/extlinks.rst @@ -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