[pmwiki-users] styles in customMarkup

Walter Keller wa at wlkl.ch
Sun Jan 24 08:04:05 CST 2010


if you define a style in a text variable as
    (:vRed:>>color=red<<:)
you can use is at as expected in wiki text:
    {$:vRed} red text
however, if you do the same with custom markup
    Markup('mRed', '>^>><<', '/{mRed\+}/', '>>color=red<<');
then then the formatting is not honoured, just the text expanded to 
<<color ....
To make it work you need the clumsy definition
    Markup('mBlue', '>^>><<', '/{mBlue\+}/', '&gt;&gt;color=blue&lt;&lt;');

This is neither intuitive nor documented! It took me quite a time to 
find out. At least it would also work for text variables.

Could you fix pmWiki, such that '>>color=red<<' would work?

thanks a lot

Walter







see <http://wlkl.ch/wiki/index.php?n=My.Test2>



More information about the pmwiki-users mailing list