Skip to content

Commit 5c71a81

Browse files
Apply suggestions from code review
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent 90e9d94 commit 5c71a81

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Fix double underscores rendering as bold in pyreverse Mermaid output.
1+
Fix double underscores erroneously rendering as bold in pyreverse's Mermaid output.
22

33
Closes #10402

pylint/pyreverse/mermaidjs_printer.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ def _open_graph(self) -> None:
3333
self._inc_indent()
3434

3535
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
36+
"""Escape characters that conflict with Markdown formatting."""
4037
text = text.replace("__", r"\_\_") # Double underscore → escaped
4138
return text
4239

0 commit comments

Comments
 (0)