1 parent 899fd03 commit 186dfd5Copy full SHA for 186dfd5
1 file changed
preprocess.py
@@ -146,6 +146,9 @@ def find_html_files(root):
146
return html_files
147
148
def fix_relative_link(rename_map, target):
149
+ if 'http://' in target or 'https://' in target:
150
+ return target
151
+
152
target = urllib.parse.unquote(target)
153
for dir,fn,new_fn in rename_map:
154
target = target.replace(fn, new_fn)
0 commit comments