Spaces:
Running
Running
Update: forgotten/epitaph/conviction, instant demo, VoxCPM2 voices, docs, card
Browse files
src/mindlock/game/server.py
CHANGED
|
@@ -72,7 +72,8 @@ def _doc_html(name: str, title: str) -> HTMLResponse:
|
|
| 72 |
elif ln.strip() in ("---", "***"):
|
| 73 |
out.append("<hr>")
|
| 74 |
elif re.match(r"\s*[-*]\s+", ln):
|
| 75 |
-
|
|
|
|
| 76 |
elif ln.strip():
|
| 77 |
out.append(f"<p>{inline(ln)}</p>")
|
| 78 |
if in_tbl:
|
|
|
|
| 72 |
elif ln.strip() in ("---", "***"):
|
| 73 |
out.append("<hr>")
|
| 74 |
elif re.match(r"\s*[-*]\s+", ln):
|
| 75 |
+
item = re.sub(r"^\s*[-*]\s+", "", ln) # extracted: 3.11 forbids backslashes in f-string {expr}
|
| 76 |
+
out.append(f"<li>{inline(item)}</li>")
|
| 77 |
elif ln.strip():
|
| 78 |
out.append(f"<p>{inline(ln)}</p>")
|
| 79 |
if in_tbl:
|