diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-21 18:46:04 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-21 18:46:04 +0300 |
commit | 20a825d46a2c244ff330cf6907e062722f2c4213 (patch) | |
tree | 9675ccac4b37af889965277fe0069dd1548929a7 /riki.md | |
parent | d064f8de5865d563657ff10e12a48bd9a872f43e (diff) | |
download | riki-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.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |