From 026791027f914b0e4a617dff877cca0f539e139e Mon Sep 17 00:00:00 2001 From: Hana <48352564+Piralein@users.noreply.github.com> Date: Mon, 5 Dec 2022 22:58:47 +0100 Subject: [PATCH] fix conversion of csharp attributes in code blocks --- doc/tools/make_rst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index 8960c66accfa..1f71b77cbda8 100755 --- a/doc/tools/make_rst.py +++ b/doc/tools/make_rst.py @@ -1565,7 +1565,7 @@ def format_text_block( escape_post = False # Tag is a reference to a class. - if tag_text in state.classes: + if tag_text in state.classes and not inside_code: if tag_text == state.current_class: # Don't create a link to the same class, format it as strong emphasis. tag_text = f"**{tag_text}**"