diff options
author | Joey Hess <joey@kitenet.net> | 2007-12-12 16:50:29 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-12-12 16:50:29 -0500 |
commit | 10a2895b3b2814636050176948253d1ca9067217 (patch) | |
tree | 7635fee41d0f8b0dfb993ef94bb2dd8d8bfe1a8e /doc/shortcuts.mdwn | |
parent | d1b02ff65982cad05df34fa217d2bd0a4d9a574b (diff) | |
download | ikiwiki-10a2895b3b2814636050176948253d1ca9067217.tar ikiwiki-10a2895b3b2814636050176948253d1ca9067217.tar.gz |
* shortcut: Expand %S to the raw input text, not url-encoded.
Diffstat (limited to 'doc/shortcuts.mdwn')
-rw-r--r-- | doc/shortcuts.mdwn | 5 |
1 files changed, 3 insertions, 2 deletions
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 |