* Fix CamelCase regexp to not break [[FooBar|BazBar]] WikiLinks.

master
joey 2006-07-26 22:09:55 +00:00
parent 6880b3e5e4
commit 3a2cb0ecff
2 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@ sub filter (@) { #{{{
# Make CamelCase links work by promoting them to fullfledged
# WikiLinks. This regexp is based on the one in Text::WikiFormat.
$params{content}=~s#(?<![["/>=])\b((?:[A-Z][a-z0-9]\w*){2,})#[[$1]]#g;
$params{content}=~s#(?<![[|"/>=])\b((?:[A-Z][a-z0-9]\w*){2,})#[[$1]]#g;
return $params{content};
} #}}}

5
debian/changelog vendored
View File

@ -1,12 +1,13 @@
ikiwiki (1.10) UNRELEASED; urgency=low
ikiwiki (1.10) unstable; urgency=low
* Run page through any relevant filters when generating a page preview.
* Noticed a bug in the wikitext markup plugin -- it made CamelCase links the
default throughout the wiki, not only on wikitext pages. Decided to call
this a feature, and split the camelcase support out into a separate plugin
that is independant of wikitext.
* Fix CamelCase regexp to not break [[FooBar|BazBar]] WikiLinks.
-- Joey Hess <joeyh@debian.org> Wed, 26 Jul 2006 17:44:25 -0400
-- Joey Hess <joeyh@debian.org> Wed, 26 Jul 2006 18:06:35 -0400
ikiwiki (1.9) unstable; urgency=low