[pmwiki-users] include only anchor ???

Patrick R. Michaud pmichaud at pobox.com
Sat Aug 12 16:05:46 CDT 2006


On Sat, Aug 12, 2006 at 03:27:39PM -0500, JB wrote:
> > How about...?
> > 
> >     (:comment [[#myanchor]]:)
> > 
> > This creates an include point but doesn't generate any HTML.
> 
> I have a wiki which has tons of includes in it.
> Can this be done automatically with Markup?

Sure, if you want to change the [[#anchor]] markup so that
it doesn't produce the anchors in the output:

    Markup('[[#', '<[[',
      '/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/',
      '');

Pm




More information about the pmwiki-users mailing list