[pmwiki-users] How can I prevent pmwiki from automatically changing url text to link?

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 17 12:10:00 CDT 2006


On Thu, Aug 17, 2006 at 12:08:54PM -0500, Patrick R. Michaud wrote:
> On Fri, Aug 18, 2006 at 12:49:36AM +0800, Kai Wen wrote:
> >    How can I solve this problem? Maybe prevent it from automatically changing
> >    the bare url into link?
> 
> 1.  Why not use (:include:) and page variables for this, instead of
>     creating a custom markup for it?
> 
> 2.  To prevent re-processing of the HTML coming from the (inner) call
>     to MarkupToHTML(), save the results in a Keep().  In other words,
>     instead of
> 
>         $html = MarkupToHTML(...);
> 
>     use
> 
>         $html = Keep(MarkupToHTML(...));


3.  Make sure that your markup is processed *after* urls are processed--
i.e., use '>links' as the second argument instead of 'directives'.

Pm




More information about the pmwiki-users mailing list