Elffuss BraidHub

kikocis/auto-code-rover public

Escape issue text in case it contains possible markdown for rich
Changeset7c421ef867a3c6c028c118350c0fffc2bf6be18a400c298f184ea6057d7019dc
AuthorMartin Mirchev <mirchevmartin2203@gmail.com> · 2024-07-18 17:08 +08:00
CommitterMartin Mirchev <mirchevmartin2203@gmail.com> · 2024-07-18 17:08 +08:00
Parentseee0f690170f

Browse the files at this changeset

1 file changed

modified app/log.py +6 −1
@@ -5,6 +5,7 @@
55 from loguru import logger
66 from rich.console import Console
77 from rich.markdown import Markdown
8+from rich.markup import escape
89 from rich.panel import Panel
910
1011
@@ -148,7 +149,11 @@
148149
149150 title = "Issue description"
150151 panel = Panel(
151- content, title=title, title_align="left", border_style="red", width=WIDTH
152+ escape(content),
153+ title=title,
154+ title_align="left",
155+ border_style="red",
156+ width=WIDTH,
152157 )
153158 console.print(panel)
154159