From 10a2895b3b2814636050176948253d1ca9067217 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 12 Dec 2007 16:50:29 -0500 Subject: * shortcut: Expand %S to the raw input text, not url-encoded. --- doc/shortcuts.mdwn | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/shortcuts.mdwn') diff --git a/doc/shortcuts.mdwn b/doc/shortcuts.mdwn index 38215b627..fd27544a3 100644 --- a/doc/shortcuts.mdwn +++ b/doc/shortcuts.mdwn @@ -59,8 +59,9 @@ This page controls what shortcut links the wiki supports. To add a new shortcut, use the `shortcut` [[ikiwiki/PreprocessorDirective]]. In the url, "%s" is replaced with the -text passed to the named shortcut. The optional `desc` parameter controls -the description of the link. +text passed to the named shortcut, after url-encoding it, and '%S' is +replaced with the raw, non-encoded text. The optional `desc` parameter +controls the description of the link. Remember that the `name` you give the shortcut will become a new [[ikiwiki/PreprocessorDirective]]. Avoid using a `name` that conflicts -- cgit v1.2.3