[pmwiki-users] Custom Markup simple problem
Fredrik
fredrik at jumans.net
Fri Sep 7 08:58:10 CDT 2007
It might be simple but I can't see what I do wrong. Here is my really advanced function so far...
<?php if (!defined('PmWiki')) exit();
Markup('test', 'directives', "/^\(:test[ ]*(.*?):\)\s*$/e",
"test('$1')");
function test($opts) {
$args = ParseArgs($opts);
$out = "!! ". $args['first'] ." ";
$out .= $args['second']. "\n";
$out .= "!! test\n";
return $out;
}
?>
Disabling the last line beginning with $out makes everything work fine. But using both just shows this as a normal textline and not as headers. Any idea?
Regards,
Fredrik
More information about the pmwiki-users
mailing list