Add support for triple hash alt header format

This commit is contained in:
Veronica Berglyd Olsen
2024-03-11 23:25:28 +01:00
parent 459a8e5cde
commit bdff3b4ee2
4 changed files with 13 additions and 1 deletions
+2
View File
@@ -396,6 +396,8 @@ class NWIndex:
return "H1", line[3:].strip()
elif line.startswith("##! "):
return "H2", line[4:].strip()
elif line.startswith("###! "):
return "H3", line[5:].strip()
return "H0", ""
def _indexWordCounts(self, tHandle: str, text: str, sTitle: str) -> None: