summaryrefslogtreecommitdiff
path: root/riki.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-21 18:46:04 +0300
committerLars Wirzenius <liw@liw.fi>2022-07-21 18:46:04 +0300
commit20a825d46a2c244ff330cf6907e062722f2c4213 (patch)
tree9675ccac4b37af889965277fe0069dd1548929a7 /riki.md
parentd064f8de5865d563657ff10e12a48bd9a872f43e (diff)
downloadriki-20a825d46a2c244ff330cf6907e062722f2c4213.tar.gz
feat: wiki links are case insensitive
If a page FOO.mdwn exists, a link `[[foo]]` points to it. Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r--riki.md9
1 files changed, 6 insertions, 3 deletions
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