Martin Tschofen wrote:
I think I get it. But just to make sure, here's what I'm trying to accomplish. Simplified: addEntryPattern = '{plug [^\d/}]*?\|(?=.*?/})' exitPattern = '/}'This allows for: {plug 100|wikitext with links/} which should be convertedto: <span class="plug">wikitext with link<span>[...some js that uses 100 as a parameter]</span></span>
Shouldn't that be <span> ...<script>...</script></span>
the handle function state will find for the above example: DOKU_LEXER_ENTER: {plug label| DOKU_LEXER_MATCHED:wikitext with links
You never mention what pattern you have registered for "MATCHED". If you don't register a pattern using addPattern() you'll never get a handle() call for DOKU_LEXER_MATCHED.
Chris -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist