[pmwiki-users] (:directive:) in (:mytext: this is a hidden PTV:)
design5 at softflow.co.uk
Tue Apr 20 05:26:48 CDT 2010
Tuesday, April 20, 2010, 11:07:32 AM, Dominique Faure wrote:
> oops, the generic version should be more elaborated:
> $MarkupExpr['directive'] = 'preg_replace("/\\n$/", "",
> "<:block>(:" .
> trim(preg_replace($rpat, $rrep, $params)) . ":)",
> array("escape" => 0)))',
> should do the trick
this did not work, even with ';' at end instead of ','
but your previous suggeastion works with thumb and thumblist.
$MarkupExpr['directive'] = '"(:" . trim(preg_replace($rpat, $rrep, $params)) . ":)"';
restricted to directives without line breaks?
More information about the pmwiki-users