From a07e2b71fc3386cfa05d4c3e452faf949d621db6 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 23 Dec 2021 00:50:40 +0800 Subject: [PATCH] Fix `make_rst.py` missing escape in front of some links --- doc/tools/make_rst.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index 3b965f0dba6..4cb9de6d58a 100755 --- a/doc/tools/make_rst.py +++ b/doc/tools/make_rst.py @@ -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:`{}`".format(repl_text, class_param, ref_type, method_param) + escape_pre = True escape_post = True elif cmd.find("image=") == 0: tag_text = "" # '![](' + cmd[6:] + ')'