[Pmwiki-users] Re: pmwiki2 precedence question
Patrick R. Michaud
Thu Sep 23 16:42:20 CDT 2004
On Fri, Sep 24, 2004 at 10:15:24AM +1200, John Rankin wrote:
> In preparation for converting the page table of contents script,
> I tested an [[#anchor | #]] markup which uses the text of the
> paragraph at the anchor point as the link text. This makes it
> easy to see what's going on, without all the page toc clutter.
> The problem:
> - it makes a call to a function that passes the \$pagename,
> \$x, the anchor name ie '$1'
> - if it runs '<[[|' it picks up the paragraph text correctly
> but inline markup is not evaluated
> - if it runs '<inline' or 'directives' $x appears to be empty
> so it returns anchor not found
> - if I use \$text instead of \$x any directives are still
> embedded (eg this is a problem if the link is to the last
> paragraph and it picks up [:groupfooter:])
Can you send a copy of the call to Markup() so I can see the
- You almost certainly want to be using \$x and not \$text.
- '<[[|' should be processing text after inline markup is evaluated,
so there must be something wrong there
- You might try $EnableDiag=1, then ?action=ruleset to see the order in
which the markup rules are being applied.
More information about the pmwiki-users