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

Kai Wen vanship85 at gmail.com
Thu Aug 17 22:36:21 CDT 2006

I try your solutions. But there are still some problems.

1. I intend to use a custom markup because the variables I wanna replace is
stored in the current page in the form of some custom page properties. So
the values of these variables can not be loaded in local configuration or
other scripts before the current page is loaded, as the direction in the
document of PageVariables. If I use PageVariables, maybe I should modify the
RetrieveAuthPage() function but it is not so convinent.

2. When I use Keep(), it display <br /> as &lt;br /&gt;

3. I try to use '>links' as the second argument, but it is so strange that
pmwiki does not parse the custom markup at all. All I get in the page is
"(:ShowTest:)", not the content I want to display. Why?


On 8/18/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060818/e7cc1ad8/attachment.html 

More information about the pmwiki-users mailing list