RST: implement internal targets (#16614)

This commit is contained in:
Andrey Makarov
2021-01-11 21:51:04 +03:00
committed by GitHub
parent 335f849c36
commit fd5c8ef208
6 changed files with 379 additions and 101 deletions

View File

@@ -206,7 +206,8 @@ $moduledesc
$content
"""
doc.listing_start = "<pre class=\"listing\">"
# $1 - number of listing in document, $2 - language (e.g. langNim), $3 - anchor
doc.listing_start = "<pre$3 class=\"listing\">"
doc.listing_end = "</pre>"
# * $analytics: Google analytics location, includes <script> tags