diff --git a/claude/skills/notes/notes.py b/claude/skills/notes/notes.py index 8adc88f..b857671 100755 --- a/claude/skills/notes/notes.py +++ b/claude/skills/notes/notes.py @@ -19,7 +19,7 @@ import html import re import subprocess import sys -from datetime import date +from datetime import datetime from pathlib import Path from urllib.parse import quote @@ -351,6 +351,9 @@ def markdown(text: str, site: Site, at: str) -> str: lists.append((indent, tag)) else: close_lists(indent) + # the other kind of list at the same indent ends this one and starts its own + if lists and lists[-1][0] == indent and lists[-1][1] != tag: + close_lists(indent - 1) if lists and lists[-1][0] == indent: out.append("
{len(site.docs)} docs · {len(site.work)} in flight · " - f"{len(site.questions)} open questions · generated {date.today()}
" + f"{len(site.questions)} open questions · generated {datetime.now().astimezone().date()}" ), "", '{len(projects)} projects · generated {date.today()}
{len(projects)} projects · generated {datetime.now().astimezone().date()}
" + (FILTER_BOX if rows else "") + '