Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,10 +29,10 @@ def parse_repo2markdown(text):
|
|
| 29 |
for match in pattern.finditer(text):
|
| 30 |
filename = match.group(1).strip()
|
| 31 |
content = match.group(2).strip()
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
components.append({'type': 'file', 'filename': filename, 'content':
|
| 36 |
return components
|
| 37 |
|
| 38 |
def parse_standard_readme(text):
|
|
|
|
| 29 |
for match in pattern.finditer(text):
|
| 30 |
filename = match.group(1).strip()
|
| 31 |
content = match.group(2).strip()
|
| 32 |
+
|
| 33 |
+
# FIX: Do not remove the wrapping code blocks.
|
| 34 |
+
# Keep 'content' as it is so the Markdown renderer sees the backticks.
|
| 35 |
+
components.append({'type': 'file', 'filename': filename, 'content': content})
|
| 36 |
return components
|
| 37 |
|
| 38 |
def parse_standard_readme(text):
|