From 4f3bfd1977ca5f0b4d8b89f26f76dd653b4728f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Ducha=C3=AEne?= Date: Fri, 4 Sep 2020 16:05:17 -0400 Subject: [PATCH] Correct links to README files ot index.html The summary uses the right path for those files, but not the mardown files link like [bla](./bla/README.md). The cause of the problem was that IndexPreprocessor renamed README.md files to index.md without replacing in the links. TODO: use a case-insensitive replace instead. --- src/preprocess/index.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/preprocess/index.rs b/src/preprocess/index.rs index fd60ad4d..0413a6ee 100644 --- a/src/preprocess/index.rs +++ b/src/preprocess/index.rs @@ -39,6 +39,7 @@ impl Preprocessor for IndexPreprocessor { path.set_file_name("index.md"); } } + ch.content = ch.content.replace("README.md", "index.md"); } });