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 | |
parent | d1b02ff65982cad05df34fa217d2bd0a4d9a574b (diff) |
* shortcut: Expand %S to the raw input text, not url-encoded.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/shortcut_encoding.mdwn | 2 | ||||
-rw-r--r-- | doc/shortcuts.mdwn | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/bugs/shortcut_encoding.mdwn b/doc/bugs/shortcut_encoding.mdwn index b4a159004..bb335906a 100644 --- a/doc/bugs/shortcut_encoding.mdwn +++ b/doc/bugs/shortcut_encoding.mdwn @@ -24,3 +24,5 @@ That also doesn't work, but this is an already-reported issue, as far as I know. > doesn't decode the escaped characters in the path string. > > I could add a %S that is not escaped, and leave %s escaped.. --[[Joey]] +> +> [[done]] 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 |