[pmwiki-devel] Markup rule evaluation sequence

john.rankin at affinity.co.nz john.rankin at affinity.co.nz
Thu May 22 15:40:45 CDT 2008


>> In the latest case, I had rule1 set to evaluate '>links'
>> and rule2 set to evaluate '<block'. PmWiki evaluates
>> 'block' '>links'. In my case, I needed rule2 to evaluate
>> after rule1, but it didn't and it took me several tries
>> to get the behaviour I wanted, as it involved a chain of
>> related rules.
>
> Did you try setting rule1 to '>links' and rule2 to '>rule1'?
>
> That seems to be the most intuitive approach describing exactly what you
> were hoping for (if I've understood correctly).  I've only played on a
> limited basis with the rules order so I may be off here...
>
> -Peter
>
The wrinkle in this case is that rule1 is optional and can be disabled.
In which case, who knows what rule2 will do. What I'd like to do is
have some permanent foundations on which to pin possibly
temporary markup rules. I also find that things break when a
rule changes its location in the evaluation order, affecting any
rules on which it depends. For example, this happened to me
when one of the core PmWiki rules moved between 2.1 and 2.2.

JR





More information about the pmwiki-devel mailing list