Keep ### sub-headings inside their ## section when reading the premises

This commit is contained in:
2026-09-24 23:51:52 +02:00
parent f649d3dbdf
commit 6492cd62a1
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ def sections(text):
if not fenced and line.startswith("## "):
current = line.strip()[3:]
found[current] = []
elif not fenced and line.startswith("#"):
elif not fenced and line.startswith("# "):
current = None
elif current and line.strip():
found[current].append(line)