[dokuwiki] Re: plugin output information after $match
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 28 Dec 2006 13:27:27 +0000
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
converted
to:
<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
- Follow-Ups:
- [dokuwiki] Re: plugin output information after $match
- From: Martin Tschofen
- References:
- [dokuwiki] plugin output information after $match
- From: Martin Tschofen
- [dokuwiki] Re: plugin output information after $match
- From: Chris Smith
- [dokuwiki] Re: plugin output information after $match
- From: Martin Tschofen
Other related posts:
- » [dokuwiki] plugin output information after $match
- » [dokuwiki] Re: plugin output information after $match
- » [dokuwiki] Re: plugin output information after $match
- » [dokuwiki] Re: plugin output information after $match
- » [dokuwiki] Re: plugin output information after $match
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
converted
to: <span class="plug">wikitext with link<span>[...some js that uses 100 as a parameter]</span></span>
the handle function state will find for the above example:
DOKU_LEXER_ENTER: {plug label|
DOKU_LEXER_MATCHED:wikitext with links
- [dokuwiki] Re: plugin output information after $match
- From: Martin Tschofen
- [dokuwiki] plugin output information after $match
- From: Martin Tschofen
- [dokuwiki] Re: plugin output information after $match
- From: Chris Smith
- [dokuwiki] Re: plugin output information after $match
- From: Martin Tschofen