[pmwiki-users] {(...)} markup recipe available
The Editor
editor at fast.st
Wed Apr 11 12:40:41 CDT 2007
On 4/11/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 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
My bad, I'm sorry. A typo in the config file!
Works great! Really like what you've done with this Pm! Thanks!
Cheers,
Dan
More information about the pmwiki-users
mailing list