[pmwiki-users] On the order of Markup
pkay42 at gmail.com
Wed May 3 15:11:11 CDT 2017
Finding ways to build multiples of a function does work - I hadn't
thought of most of those, tbh. I did waste hours trying to figure out
what was wrong before I finally realized what was going on. I'd
rather spare any other authors that time. I'll see what I can do in
the next week or so.
On Wed, May 3, 2017 at 1:48 PM, Petko Yotov <5ko at 5ko.fr> wrote:
> On 2017-05-03 19:19, Peter Kay wrote:
>> One other problem I recently stumbled on is that the MarkupRules only
>> allow one instance of a given pattern.
>> So for example if you want to process '/XXX/' twice (for whatever
>> reason), you can't - only one copy goes in.
> If you want to process '/XXX/' twice (for whatever reason), there are dozens
> of ways to write the same pattern:
> etc., etc., etc.
>> I'd rather build the rules using the markup name, so as long
>> as the names are different, they'll both run.
> The next version of PHP, 7.2, will deprecate the function create_function().
> We will have to rewrite the core markup engine, markup rules and the
> processing of various $*Patterns (future PmWiki versions may have to drop
> support for PHP 5.2 and older).
> So indeed, it may be possible to find a way to build the rules using the
> markup name, and even pass the name to the processing function so a single
> function can do multiple rules.
> As always, if implemented, such a feature will have to *not* break the
> existing markup rules that work today for PHP 5.3-7.1.
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users