I want to write a macro that wraps around videoattach.php as a shortcut
for my pmwiki users:
Markup_e('leftvideo', 'directives',
"/\\(:leftvideo\\s+(.*?)\\s*:\\)/",
“leftvideo(\$m[1])”);
function leftvideo($video_code) {
$output = "(:div class='igrid':) $video_code (:divend:)";
return $output;
}
Weirdly, the “(:divend:)” is treated as text while the rest is
processed correctly. Do you have any
ideas how to do this properly?
_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel