ranranrunforit commited on
Commit
974acfb
·
verified ·
1 Parent(s): 7431925

Upload 18 files

Browse files
Files changed (1) hide show
  1. 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
- items.append(f"<li>{_inline_md(re.sub(r'^\s*[-*]\s+', '', lines[i]))}</li>")
 
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