[pmwiki-users] Markup sequence question

Hans design5 at softflow.co.uk
Fri Feb 16 17:17:52 CST 2007


Friday, February 16, 2007, 10:27:36 PM, Pierre wrote:

> How can I make a custom markup so that the result content
> ">>yellowbox<<" and will be further
processed by the >>><< markup.

> I tried:

> Markup('staffbox','<directives','/\(:staffbox\\s+(.*?)\\s?:\)/',
">>>yellowbox<<somestuffand$1otherstuff$1>><<");

perhaps you can try using the Keep and PSS function and HTML,
with the /e option:

Markup('staffbox','directives','/\\(:staffbox\\s(.*?):\\)/e',
"Keep('<div class=yellowbox>somestuffand'.PSS($1).'otherstuff'.PSS($1).'</div>')");


Hans




More information about the pmwiki-users mailing list