Skip to content

Commit d24561a

Browse files
committed
Fix README.html links
1 parent 416e737 commit d24561a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mdbook-summary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _preprocess_content(text: str, links: dict[str, str], depth: int) -> str:
6666
title += f' → {anchor}'
6767
anchor = f'#{anchor}'
6868

69-
url = f'[{title}]({full_path}{anchor})'.replace('README.md', 'index.md')
69+
url = f'[{title}]({full_path}{anchor})'.replace('README.md', 'index.md').replace('README.html', 'index.html')
7070
text = re.sub(SUMMARY_REGEX, url, text, count=1)
7171

7272
return text

0 commit comments

Comments
 (0)