summaryrefslogtreecommitdiff
path: root/doc/tools
diff options
context:
space:
mode:
authorHana <48352564+Piralein@users.noreply.github.com>2022-12-05 22:58:47 +0100
committerHana <48352564+Piralein@users.noreply.github.com>2022-12-05 22:58:47 +0100
commit026791027f914b0e4a617dff877cca0f539e139e (patch)
treea8a613426d7b7d0bdbebbc5c41e4a89fd90f7254 /doc/tools
parentf3e6750a7e4702918e05f42b1376e30e652f2f90 (diff)
fix conversion of csharp attributes in code blocks
Diffstat (limited to 'doc/tools')
-rwxr-xr-xdoc/tools/make_rst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py
index 8960c66acc..1f71b77cbd 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}**"