Skip to content

Commit 5fa7a28

Browse files
committed
fix: parse H3 headers to detect deployment tabs correctly
1 parent d53676c commit 5fa7a28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/sync_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def flush():
5151
text = "\n".join(buffer).strip()
5252
if text: sections.append({"key": current_key, "title": current_title, "content": text})
5353
for line in content.splitlines():
54-
if line.startswith("## "):
54+
if line.startswith("## ") or line.startswith("### "):
5555
flush()
56-
current_title = line[3:].strip()
56+
current_title = line.lstrip("#").strip()
5757
current_key = current_title.lower()
5858
buffer = []
5959
else: buffer.append(line)

0 commit comments

Comments
 (0)