Merge pull request #56165 from timothyqiu/escape-fix

This commit is contained in:
Rémi Verschelde 2021-12-22 18:46:47 +01:00 committed by GitHub
commit 650b77340d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1042,6 +1042,7 @@ def rstize_text(text, state): # type: (str, State) -> str
if class_param != state.current_class:
repl_text = "{}.{}".format(class_param, method_param)
tag_text = ":ref:`{}<class_{}{}_{}>`".format(repl_text, class_param, ref_type, method_param)
escape_pre = True
escape_post = True
elif cmd.find("image=") == 0:
tag_text = "" # '![](' + cmd[6:] + ')'