zioth
The getSort() method of syntax plugins does a very nice job of keeping plugins from stepping on each other's toes. Without it, my autolink4 plugin would inject links into other plugins' content, but since I have a sort of 999, it works.
The problem is, DokuWiki has a limit to the number of syntax rules due to the way it combines regular expressions. Somewhere between 500 and 1000, it stops working. An enhancement I'm considering could bring this number into the thousands, or even tens of thousands.
I could create an action plugin to do all the substitutions I need more efficiently and without breaking the parser, but is there any way to avoid stepping on syntax plugins?
Or is there a way to do this with a syntax plugin? I'd have to be able to match arbitrary words and phrases. I guess my match could be something like '(?:\b\w+){1,10}' or something.