[pmwiki-users] Nesting elements (Was: Numbered lists ...)

Patrick R. Michaud pmichaud at pobox.com
Wed Jul 27 11:40:36 CDT 2005


On Wed, Jul 27, 2005 at 11:25:09AM -0500, Jonathan Scott Duff wrote:
> On Wed, Jul 27, 2005 at 11:03:11AM -0500, Patrick R. Michaud wrote:
> > Another good idea until confronted with the facts.  (Yes, I could
> > adjust the markup pattern to allow (:comment:).  No, I'm not completely
> > sure that's a good idea just yet.)
> 
> Why not exactly?  It seems to me that 
> 
> Markup('comment', 'directives', '/\\(:comment\\b.*?:\\)/i', '');
> 
> would be harmless enough (other than allowing the semantic without
> typing an extra space).

That pattern accidentally grabs something like (:comment-form:) or
(:comment-box:).  To do it the pattern should really be

    Markup('comment', 'directives', '/\\(:comment(\\s.*?)?:\\)/i', '');

However, the problem I'm seeing with (:comment:) is that it looks
like it really wants to have a (:commentend:) somewhere, and that's
just not how it's defined.  

However, one can get a large block-style comment in the markup by doing:

    >>comment<<
    Here is a long set
    of comments that will
    be hidden from the browser
    (assuming the browser understands
    the CSS "display" property).
    >><<

Pm




More information about the pmwiki-users mailing list