Skip to content

Commit 46b377d

Browse files
committed
updated preprocessor
1 parent 01b8ea3 commit 46b377d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hacktricks-preprocessor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def ref(matchobj):
7777
logger.error(f'Error getting chapter title: {path.normpath(path.join(dir,href))}')
7878
sys.exit(1)
7979

80+
if href.endswith("/README.md"):
81+
href = href.replace("/README.md", "/index.html")
8082

8183
template = f"""<a class="content_ref" href="{href}"><span class="content_ref_label">{title}</span></a>"""
8284

0 commit comments

Comments
 (0)