[pmwiki-users] Markup rules processing order
Patrick R. Michaud
pmichaud at pobox.com
Fri Aug 26 16:46:55 CDT 2005
On Fri, Aug 26, 2005 at 10:33:59PM +0200, Christian Schlatter wrote:
> I'm wondering if I coded something wrong or if the following behavior is
> normal:
>
> If I define a new markup like
> Markup('new', '>if', ..., HandleNew(...));
> the HandleNew function gets executed four times, with
> Markup('new', '<if', ..., HandleNew(...));
> it even gets executed 6 times. If I write
> Markup('new', 'directives', ..., HandleNew(...));
> the HandleNew function gets executed one time only, as expected. I
> thought that defining '>if' says that HandleNew gets executed after
> if-Rules but not several times.
It's normal. Any rule can request that the previous markup rules be
"re-executed" on the current text. Typically this happens with the
(:include:) rule, which needs to restart the markup sequence so
that any [=...=], (:include:), (:if:), etc. markups in the included
text can be processed.
Pm
More information about the pmwiki-users
mailing list