mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fixup! sphinx.ext.extlinks: Clarify escaping of `%`
This commit is contained in:
committed by
Takeshi KOMIYA
parent
ef1747f03a
commit
75605d437f
@@ -44,8 +44,8 @@ The extension adds a config value:
|
|||||||
|
|
||||||
To produce a literal ``%`` in either *base URL* or *caption*, use ``%%``::
|
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'
|
extlinks = {'KnR': ('https://example.org/K%%26R/page/%s',
|
||||||
'Search %s on Wikipedia')}
|
'[K&R; page %s]')}
|
||||||
|
|
||||||
You can also use the usual "explicit title" syntax supported by other roles
|
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
|
that generate links, i.e. ``:issue:`this issue <123>```. In this case, the
|
||||||
|
|||||||
Reference in New Issue
Block a user