[pmwiki-users] custom markup parameter issue

info at hassanein.ch info at hassanein.ch
Fri Jan 12 04:14:51 CST 2007


Hi

How can I pass a parameter from the markup defintion to a function.
The following code shows always $1 instead of it's contnet.

Markup("mymu", "inline", "/_mymu_ (.*?) _mymu_/", myFunc('$1') );

function myFunc($inp) {
 // does not prnt $inp, it prints "$1"
 printf("inp=%s \n", $inp);
}

--
Thanks for any help.
Mike






More information about the pmwiki-users mailing list