X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/7960031135e74f6d36abc4294dbadb687117222c..2f33f294d95def3c50a467c5b5b9c5f5cae9e5fb:/doc/bugs/Spaces_in_link_text_for_ikiwiki_links.mdwn diff --git a/doc/bugs/Spaces_in_link_text_for_ikiwiki_links.mdwn b/doc/bugs/Spaces_in_link_text_for_ikiwiki_links.mdwn index d6e4e5a9b..27919f7be 100644 --- a/doc/bugs/Spaces_in_link_text_for_ikiwiki_links.mdwn +++ b/doc/bugs/Spaces_in_link_text_for_ikiwiki_links.mdwn @@ -1,7 +1,7 @@ Versions 2.0 and 2.1 of ikiwiki, and I think earlier versions as well, -allowed wiki links to have spaces in the link text. For example, [[ikiwiki +allowed wiki links to have spaces in the link text. For example, [[!ikiwiki logo page|logo]] should create an anchor tag referencing the logo page, and -[[ikiwiki logo|logo/ikiwiki.png]] should create an image tag referencing +[[!ikiwiki logo|logo/ikiwiki.png]] should create an image tag referencing the logo. As of version 2.2, this no longer works. I think the pattern \\[[...|...]] @@ -11,7 +11,7 @@ reported in [[index/discussion#index11h1]]. > The above examples are ambiguous, only worked due to a bug, and were > never documented to work. So I'm not inclined to re-add support for them. > -> If you look at [[WikiLink]], it is clear that spaces cannot be used in +> If you look at [[ikiwiki/WikiLink]], it is clear that spaces cannot be used in > WikiLinks. It also shows how to use underscores in the link text if you > want multiple words. > @@ -35,4 +35,19 @@ reported in [[index/discussion#index11h1]]. > to a bug, so I current have no plans to bring the old behavior back. > --[[Joey]] +>> I agree that the grammar should be unambiguous. It seems to me that the +>> problem with spaces-in-wikilinks is caused by overloading the wikilink +>> and preprocessor syntax to use the same symbols. If they didn't (and is +>> there much advantage in them using the same symbols? I know in some +>> cases you have something which is a wikilink and a preprocessor directive, +>> but how often?) there'd be no problem with spaces. +>> +>> If there was ever a future, syntax-breaking major release of ikiwiki +>> (similar to python3000) I'd like to see this fixed as part of that. +>> --[[JonDowland]] + +>>> You can enable `prefix_directives` and get the disambiguated behavior +>>> and spaces in wikilinks today. It will become the default in 3.0. +>>> --[[Joey]] + [[done]]