[pmwiki-users] (:directive:) in (:mytext: this is a hidden PTV:)
Hans
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$/", "",
> MarkupToHTML($pagename,
> "<: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.
Is
$MarkupExpr['directive'] = '"(:" . trim(preg_replace($rpat, $rrep, $params)) . ":)"';
restricted to directives without line breaks?
tanks,
~Hans
More information about the pmwiki-users
mailing list