Skip to content

Commit 186dfd5

Browse files
committed
preprocess: Fix external links
1 parent 899fd03 commit 186dfd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

preprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ def find_html_files(root):
146146
return html_files
147147

148148
def fix_relative_link(rename_map, target):
149+
if 'http://' in target or 'https://' in target:
150+
return target
151+
149152
target = urllib.parse.unquote(target)
150153
for dir,fn,new_fn in rename_map:
151154
target = target.replace(fn, new_fn)

0 commit comments

Comments
 (0)