[pmwiki-users] Markup Processing Order

Patrick R. Michaud pmichaud at pobox.com
Sun Aug 20 21:08:38 CDT 2006

On Sun, Aug 20, 2006 at 07:41:56PM -0400, The Editor wrote:
> According to the documentation I could find,  PRR() "simply increments
> the global $RedoMarkupLine variable, which tells the markup engine to
> begin reprocessing the CURRENT STRING (line) from the beginning of the
> markup translation table."
> Does this mean it will only redo the current line of wiki code?  The
> data read function is supposed to set page variables that can be used
> anywhere on the page.  Unless PRR reprocesses the whole wiki page, I
> don't think it will work for us.

Since the processing is taking place before the 'split' operation,
it's reprocessing the whole wiki page.

> Which means we would be left trying to debug why option two is not
> working. How can we get the $Name variable into the recipe before page
> variables are processed? I still have a few hairs left I haven't
> pulled out yet.

Oh, sorry about that -- I mistyped the function and forgot the $l
parameter at the end (last line below).

    $l = preg_replace('/\\{(!?[-\\w.\\/]*)(\\$\\w+)\\}/e',
          "htmlspecialchars(PageVar(\$pagename, '$2', '$1'), ENT_NOQUOTES)",


More information about the pmwiki-users mailing list