Spaces:
Runtime error
Runtime error
project-baize
commited on
Commit
•
b83fab1
1
Parent(s):
29ef7fd
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 += f"{line}\n"
|
154 |
elif in_code_block is True and line.startswith("```"):
|
155 |
in_code_block = False
|
156 |
+
markdown_text += f"{line}\n"
|
157 |
elif in_code_block:
|
158 |
markdown_text += f"{line}\n"
|
159 |
else:
|