aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorchrysn <chrysn@web>2012-03-24 22:46:11 -0400
committeradmin <admin@branchable.com>2012-03-24 22:46:11 -0400
commit94226faf35518629a7d69201c800a35991f9b794 (patch)
tree78db718b1dff1e9b9364c83686ab9a4e3f77442e /doc/bugs
parent36315896c652d1103a93a1cebdcd328c767ab9af (diff)
downloadikiwiki-94226faf35518629a7d69201c800a35991f9b794.tar
ikiwiki-94226faf35518629a7d69201c800a35991f9b794.tar.gz
workaround and some analysis of the bug
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/Underscores_in_links_don__39__t_appear.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/bugs/Underscores_in_links_don__39__t_appear.mdwn b/doc/bugs/Underscores_in_links_don__39__t_appear.mdwn
index d63f9cd18..b25dfb7fe 100644
--- a/doc/bugs/Underscores_in_links_don__39__t_appear.mdwn
+++ b/doc/bugs/Underscores_in_links_don__39__t_appear.mdwn
@@ -6,3 +6,13 @@ Expected behavior:
I would like to be able to create links with underscores. I realize this is a feature, and I searched for ways to escape the underscore so it would appear, but I didn't find any.
+> as a workaround, you can use \[[cmd\_\_95\_\_test|cmd_test]] (which will link to a page named "cmd test" at the url location "cmd\_test") or \[[cmd\_\_95\_\_test]] (which will link to a page named "cmd\_test" at the url location "cmd\_\_95\_\_test"). i would, from my limited understanding of ikiwiki internals, consider the bug valid, and suggest that
+>
+> * explicit link text be not subject to de-escaping (why should it; this would be the short term solution)
+> * escaped page names never be used in user visible parts of ikiwiki (in my opinion, a user should not need to know about those internals, especially as they are configuration dependant (wiki_file_regexp))
+>
+> note that in [[ikiwiki/wikilink]], that very behavior is documented; it says that "\[[foo\_bar|Sandbox]]" will show as "foo bar". (although you can't tell that apart from "foo\_bar" easily because it's a hyperlink).
+>
+> i assume that this behavior stems from times when wikilinks and [[ikiwiki/directive]]s were not distinguished by \[[ vs \[[! but by the use of whitespace in directives, so whitespace had to be avoided in wikilinks.
+>
+> --[[chrysn]]