4 This plugin adds the "CDML"-Syntax (as found in ProWiki) to the
5 mpi framework - you must load mpi.php also to make this work! Then
8 [[PluginName][arg1=val1][arg2=...]
12 instead of the regular mpi <?plugin PluginName ... ?> syntax.
16 $ewiki_plugins["format_source"][] = "ewiki_mpi_cdml_syntax";
18 function ewiki_mpi_cdml_syntax(&$src) {
20 '/\[\[(\w+)\]([^\[\]]*)(\[\w+=[^\]]+?\])*([^\]]+)\]/imse',
22 ($2 ? stripslashes(" $2 ") : "") .
23 ($3 ? strtr(stripslashes("$3"), "[]", " ") : "") .
24 ($4 ? stripslashes(" $4") : "") .