updated preprocessor

This commit is contained in:
Congon4tor
2025-01-26 18:16:58 +01:00
parent 5d21fb67a6
commit 3e06c28e43

View File

@@ -77,6 +77,8 @@ def ref(matchobj):
logger.error(f'Error getting chapter title: {path.normpath(path.join(dir,href))}')
sys.exit(1)
if href.endswith("/README.md"):
href = href.replace("/README.md", "/index.html")
template = f"""<a class="content_ref" href="{href}"><span class="content_ref_label">{title}</span></a>"""