[pmwiki-users] Custom Markup: $2 does not work correctly (regexp problem?)

Dawid Gajownik gajownik at gmail.com
Thu Aug 24 13:54:29 CDT 2006

	I wanted to unify look of articles in my wiki so I started creating 
custom markup similar to this one → 
Simple things with one parameter works correctly. There are problems 
with more complicated ones, though. For instance I've created this markup:

Markup("boxfile", "block", '/\\(:boxfile (.*?) | (.*?):\\)/s', "<div 
class=\"boxfile\"><p><strong>File:</strong> $1</p><pre>$2</pre></div>");

(I'm not sure about this "block" option). Do I have to say that it does 
not work as expected? ;) Please take a look here → 

May someone suggest me how to fix it, please?




More information about the pmwiki-users mailing list