Spaces:
Runtime error
Runtime error
Commit
·
2b1cb3f
1
Parent(s):
d6a22b6
Update app_modules/utils.py
Browse files- app_modules/utils.py +2 -2
app_modules/utils.py
CHANGED
|
@@ -150,10 +150,10 @@ def convert_to_markdown(text):
|
|
| 150 |
for line in lines:
|
| 151 |
if in_code_block is False and line.startswith("```"):
|
| 152 |
in_code_block = True
|
| 153 |
-
markdown_text +=
|
| 154 |
elif in_code_block is True and line.startswith("```"):
|
| 155 |
in_code_block = False
|
| 156 |
-
markdown_text +=
|
| 157 |
elif in_code_block:
|
| 158 |
markdown_text += f"{line}\n"
|
| 159 |
else:
|
|
|
|
| 150 |
for line in lines:
|
| 151 |
if in_code_block is False and line.startswith("```"):
|
| 152 |
in_code_block = True
|
| 153 |
+
markdown_text += "```\n"
|
| 154 |
elif in_code_block is True and line.startswith("```"):
|
| 155 |
in_code_block = False
|
| 156 |
+
markdown_text += "```\n"
|
| 157 |
elif in_code_block:
|
| 158 |
markdown_text += f"{line}\n"
|
| 159 |
else:
|