Spaces:
Runtime error
Runtime error
Upload 18 files
Browse files- emailer.py +2 -1
emailer.py
CHANGED
|
@@ -107,7 +107,8 @@ def _md_to_html(text: str) -> str:
|
|
| 107 |
if re.match(r"^\s*[-*]\s+", line):
|
| 108 |
items = []
|
| 109 |
while i < n and re.match(r"^\s*[-*]\s+", lines[i]):
|
| 110 |
-
|
|
|
|
| 111 |
i += 1
|
| 112 |
out.append(f"<ul style='margin:6px 0 6px 18px'>{''.join(items)}</ul>")
|
| 113 |
continue
|
|
|
|
| 107 |
if re.match(r"^\s*[-*]\s+", line):
|
| 108 |
items = []
|
| 109 |
while i < n and re.match(r"^\s*[-*]\s+", lines[i]):
|
| 110 |
+
item_text = re.sub(r"^\s*[-*]\s+", "", lines[i])
|
| 111 |
+
items.append(f"<li>{_inline_md(item_text)}</li>")
|
| 112 |
i += 1
|
| 113 |
out.append(f"<ul style='margin:6px 0 6px 18px'>{''.join(items)}</ul>")
|
| 114 |
continue
|