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("
  • ") else: @@ -519,7 +522,7 @@ def write_index(notes: Path) -> None: f"

    {e(project)} notes

    ", ( f"

    {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()}

    " ), "", '
    ', @@ -628,7 +631,7 @@ def hub(projects: dict[str, Path]) -> str: ) body = ( '

    notes

    ' - f"

    {len(projects)} projects · generated {date.today()}

    " + f"

    {len(projects)} projects · generated {datetime.now().astimezone().date()}

    " + (FILTER_BOX if rows else "") + '

    Projects

    ' + (