[pmwiki-users] Another conversion trouble: PmWiki 1 -> 2
Patrick R. Michaud
pmichaud at pobox.com
Wed Dec 14 13:51:13 CST 2005
On Wed, Dec 14, 2005 at 08:23:22PM +0100, chr at home.se wrote:
> On Wed, 14 Dec 2005, Patrick R. Michaud wrote:
>
> > Now fixed for this particular case ([[target text]] and [[{freelink}
> > text]]).
>
> Really? To be honest, I sort of expected that it'd be a tough thing to
> fix given the line-continuation-aspect.
The rule for [[target text]] was originally given as:
# [[target linktext]]
"/\\[\\[((\\w|\\#)[^$UrlExcludeChars\\s]*)\\s(.*?)\\]\\]/"
=> '[[$1 |$3]]',
I just changed it to read
# [[target linktext]]
"/\\[\\[((\\w|\\#)[^$UrlExcludeChars\\s]*)\\s((.|\\\n)*?)\\]\\]/"
=> '[[$1 |$3]]',
which essentially says we'll accept any non-newline character (.) or
any newline as long as it's immediately preceded by a backslash (\\\n).
Pm
More information about the pmwiki-users
mailing list