[dokuwiki] Re: Help wanted with accepts() in very simple plugin

  • From: TNHarris <telliamed@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 21 Jun 2012 19:58:57 -0400

On Thu, Jun 21, 2012, at 01:47 PM, Chris Green wrote:
> Alternatively it may simply be that calling accepts() in this way
> doesn't disable preformatting of text because I'm calling $renderer-
> >render() to parse the text 'inside' my plugin.  Is there a more
> elegant way to have a plugin 'wrap' some text with start and end
> patterns but still parse the intervening text?

The 'formatting' type is for inline elements. A div plugins should be
'container' and a PType of 'block' or 'stack'. But as Christopher Smith
said, and I hadn't anticipated, you can't stop a containing mode from
including what you exclude. So you can only accepting 'substition' and
'formatting' modes.

-----
-- tom
telliamed@xxxxxxxxxxxxx
-- tom
telliamed@xxxxxxxxxxx

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: