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



_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to