[pmwiki-users] {(...)} markup recipe available
Patrick R. Michaud
pmichaud at pobox.com
Wed Apr 11 12:37:32 CDT 2007
On Wed, Apr 11, 2007 at 01:28:42PM -0400, The Editor wrote:
> Pm, I'm trying to get my ZAP markup functions updated but seem to be
> doing something wrong. Here is one example that doesn't seem to work
> right...
>
> $MarkupExpr['code'] = 'ZAPMcode($args[0])';
> function ZAPMcode($p) {
> // do my stuff;
> return $p;
> }
>
> When I enter {(code {$:value})} I get back the same value with the {(
> )} around it. Am I missing something here?
Is the markupexpr.php recipe loaded?
If you're getting back the {(...)} (including the curly braces),
then the markup isn't being processed at all. If the markup is being
processed, it at least removes the outer curlies.
I did an example at http://www.pmwiki.org/wiki/Test/ZAPMcode where
it appears to work.
Pm
More information about the pmwiki-users
mailing list