summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-06 11:00:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-06 11:00:36 +0100
commit05f64399c0d48a31238c01b91124d6c717238ac6 (patch)
tree04a5dcadf9e03ca12ebd30b7636ff9df03084f87 /doc
parent8ec9701ad03ec5a6f853cf5904b989ad2ae106e6 (diff)
parent026791027f914b0e4a617dff877cca0f539e139e (diff)
Merge pull request #69628 from Piralein/strong-treatment
fix conversion of csharp attributes in code blocks
Diffstat (limited to 'doc')
-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}**"