Fix invalid literals in generated rst docs
Before this change, API docs that look like this: …adding [param character]s to the right of the string. would turn into rst files that look like this: …adding ``character``s to the right of the string. That reStructuredText is invalid and causes warnings when the docs repo is built.
This commit is contained in:
parent
79b21e96ad
commit
7f30e81abe
1 changed files with 2 additions and 0 deletions
|
@ -1480,6 +1480,8 @@ def format_text_block(
|
|||
)
|
||||
|
||||
tag_text = f"``{link_target}``"
|
||||
escape_pre = True
|
||||
escape_post = True
|
||||
|
||||
# Formatting directives.
|
||||
|
||||
|
|
Loading…
Reference in a new issue