<div>I try your solutions. But there are still some problems.</div>
<div> </div>
<div>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.
</div>
<div><br>2. When I use Keep(), it display <br /> as &lt;br /&gt;<br> </div>
<div>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?
</div>
<div> </div>
<div>Thanks<br> </div>
<div><span class="gmail_quote">On 8/18/06, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, Aug 17, 2006 at 12:08:54PM -0500, Patrick R. Michaud wrote:<br>> On Fri, Aug 18, 2006 at 12:49:36AM +0800, Kai Wen wrote:
<br>> > How can I solve this problem? Maybe prevent it from automatically changing<br>> > the bare url into link?<br>><br>> 1. Why not use (:include:) and page variables for this, instead of<br>> creating a custom markup for it?
<br>><br>> 2. To prevent re-processing of the HTML coming from the (inner) call<br>> to MarkupToHTML(), save the results in a Keep(). In other words,<br>> instead of<br>><br>> $html = MarkupToHTML(...);
<br>><br>> use<br>><br>> $html = Keep(MarkupToHTML(...));<br><br><br>3. Make sure that your markup is processed *after* urls are processed--<br>i.e., use '>links' as the second argument instead of 'directives'.
<br><br>Pm<br></blockquote></div><br>