From 20a825d46a2c244ff330cf6907e062722f2c4213 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 21 Jul 2022 18:46:04 +0300 Subject: feat: wiki links are case insensitive If a page FOO.mdwn exists, a link `[[foo]]` points to it. Sponsored-by: author --- riki.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'riki.md') diff --git a/riki.md b/riki.md index 14be721..4eb6e7f 100644 --- a/riki.md +++ b/riki.md @@ -378,16 +378,19 @@ given file site/dir/foo/child.mdwn from empty given file site/dir/foo/child/grandchild.mdwn from empty when I run riki build --plain-body site output then file output/dir/foo.html contains "href="/absolute"" -then file output/dir/foo.html contains "href="dir/sibling"" -then file output/dir/foo.html contains "href="dir/foo/child"" -then file output/dir/foo.html contains "href="dir/foo/child/grandchild"" +then file output/dir/foo.html contains "href="/dir/sibling"" +then file output/dir/foo.html contains "href="/dir/foo/child"" +then file output/dir/foo.html contains "href="/dir/foo/child/grandchild"" ~~~ +Note the uppercase link to the `child` page in the test page below. + ~~~{#foo .file .markdown} [[/absolute]] [[sibling]] [[child]] [[child/grandchild]] +[[CHILD]] ~~~ ## Wiki links to pages that don't exist -- cgit v1.2.1