There was an error while loading. Please reload this page.
1 parent 90e9d94 commit 5c71a81Copy full SHA for 5c71a81
doc/whatsnew/fragments/10402.bugfix
@@ -1,3 +1,3 @@
1
-Fix double underscores rendering as bold in pyreverse Mermaid output.
+Fix double underscores erroneously rendering as bold in pyreverse's Mermaid output.
2
3
Closes #10402
pylint/pyreverse/mermaidjs_printer.py
@@ -33,10 +33,7 @@ def _open_graph(self) -> None:
33
self._inc_indent()
34
35
def _escape_mermaid_text(self, text: str) -> str:
36
- """Escape text to prevent Mermaid from interpreting it as Markdown
37
- formatting.
38
- """
39
- # Escape characters that conflict with Markdown formatting
+ """Escape characters that conflict with Markdown formatting."""
40
text = text.replace("__", r"\_\_") # Double underscore → escaped
41
return text
42
0 commit comments