Skip to content

Commit d0b3e28

Browse files
authored
Fix code block rendering in demo app (#250)
To fix the issue we use four backticks for code fence to avoid conflicts with backticks being used within the displayed code.
1 parent d97cd21 commit d0b3e28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

demo/main.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,12 @@ def demo_code(code_arg: str):
241241
)
242242
):
243243
box_header("Code")
244+
# Use four backticks for code fence to avoid conflicts with backticks being used
245+
# within the displayed code.
244246
me.markdown(
245-
f"""```
247+
f"""````
246248
{code_arg}
247-
```
249+
````
248250
""",
249251
style=me.Style(
250252
border=me.Border(

0 commit comments

Comments
 (0)