[pmwiki-users] Minor bug: (:markup:) doesn't work if first on page

Patrick R. Michaud pmichaud at pobox.com
Mon Mar 21 07:43:27 CST 2005


On Sun, Mar 20, 2005 at 10:36:38PM +0100, Joachim Durchholz wrote:
> If (:markup:) is the very first thing that's on a wiki page, it will be 
> passed through verbatim and not recognized as a directive.
> 
> ?action=diag reveals that the regex as entered into the markup array 
> starts with a line break (instead of with an ^ anchor).
> 
> It seems that only (:markup:) is affected by this effect, at least a 
> quick ?action=ruleset check indicated so.

This is fixed for 2.0.beta27.  (I didn't use ^ here because at this point
in processing ^ means "beginning of string" -- i.e., the whole markup text --
and not "beginning of line".  But adding a /m option to the regex fixes 
this.)

Pm



More information about the pmwiki-users mailing list