On Thu, Jun 21, 2012 at 07:58:57PM -0400, TNHarris wrote: > 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. > OK, thanks all. It's actually easiest for the plugin to simply replace the two leading spaces on a line with a nonbreakingspace which prevents any recognition by Dokuwiki parsing. It processes the text anyway so this additional change isn't very onerous. -- Chris Green -- DokuWiki mailing list - more info at http://www.dokuwiki.org/mailinglist