Keep ### sub-headings inside their ## section when reading the premises
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user