[Pmwiki-users] Re: PmWiki 2 questions

John Rankin john.rankin
Mon Sep 20 19:55:06 CDT 2004


On Tuesday, 21 September 2004 11:27 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
...
>The problem is that the LinkText isn't available at the time
>"inline" is currently processed--the LinkText is held in Keep()
>values at this point.  It doesn't get restored until just before
>WikiStyles are processed.
>
>Which of the existing markups should we allow to occur in link text,
>and what conflicts might they have with links?  Would it be sufficient
>to simply move the whole "inline" section to before "link" processing?
>In a quick glance at PmWiki's default markup, I don't see a
>major problem with this.

Yup. Or...

Um, what about starting with the obvious:

Change the MakeLink function as follows

else {
  if (is_null($txt)) {
    ...
  } else
    $txt = MarkupToHTML($txt);

Would that work? The following would cause problems:

[[a page | !link text with a WikiWord]]

How worried should one be about extreme cases?
-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list