Update replace.py (#1122)

Fix internal links that lead to Headers that contain " / "

For example in https://fmhy.net/toolsguide#text-tools when clicking on "Note Taking / To-Do" it doesnt lead to the correct subsection
This commit is contained in:
Rust1667 2023-11-13 16:23:32 +01:00 committed by GitHub
parent cb82f8a053
commit 09880f9161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
.github/replace.py vendored
View File

@ -88,7 +88,7 @@ def reformat_subsections(text):
text = re.sub('#wiki_', '/#', text) text = re.sub('#wiki_', '/#', text)
text = re.sub('.25BA_', '', text) text = re.sub('.25BA_', '', text)
text = re.sub('.25B7_', '', text) text = re.sub('.25B7_', '', text)
text = re.sub('_.2F_', '--', text) text = re.sub('_.2F_', '-', text)
text = replace_underscore(text) text = replace_underscore(text)
return text return text