From 5ea057ea11eea50753fe14920a74bcd1027017e4 Mon Sep 17 00:00:00 2001 From: Congon4tor Date: Sun, 26 Jan 2025 17:59:14 +0100 Subject: [PATCH] update preprocessor --- hacktricks-preprocessor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hacktricks-preprocessor.py b/hacktricks-preprocessor.py index af5949449..5d070c39f 100644 --- a/hacktricks-preprocessor.py +++ b/hacktricks-preprocessor.py @@ -78,6 +78,9 @@ def ref(matchobj): sys.exit(1) + if href.endswith("/README.md"): + href = href.replace("/README.md", "/index.html") + template = f"""{title}""" # translate_table = str.maketrans({"\"":"\\\"","\n":"\\n"})