refactor: public names for cross-module reads

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 22:59:51 +01:00
1 parent f371790dc6
commit 3853ca2f1c
254 files changed
+2955 -2969

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ def toc_slug(text: str) -> str:
return re.sub(r"[-\s]+", "-", text)
def _unique(ident: str, used: set[str]) -> str:
def unique_anchor(ident: str, used: set[str]) -> str:
while ident in used or not ident:
match = IDCOUNT.match(ident)
ident = f"{match[1]}_{int(match[2]) + 1}" if match else f"{ident}_1"