[pmwiki-users] Wikiwords and style identifiers bug and workaround

Patrick R. Michaud pmichaud at pobox.com
Wed Aug 9 11:18:12 CDT 2006

On Wed, Aug 09, 2006 at 01:19:18AM -0400, Pico wrote:
> John Rankin wrote:
> > On Wednesday, 9 August 2006 1:43 PM, Pico <pmwiki at ben-amotz.com> wrote:
> >> Dominique Faure wrote:
> >>> Developing a new cookbook recipe involving divs, my kindly beta-tester
> >>> found that using a Wikiword as a style identifier breaks the page
> >>> output.

Yes, this is arguably a bug.  I don't have a simple fix at the moment.
One possibility would be to say that '=' (for ids) and '#' (for colors)
prevent the following sequence of characters from being treated as

> > What happens if you "escape" the wikiword?
> > 
> >>> id='`MyDiv'<<
> > 
> > Fromm memory, the `MyDiv will be put in a Keep and restored in time
> > for style processing.
> It breaks every way that I have tested it:
>  >>id='`Mydiv'<<
>  >>id=`'Mydiv'<<
>  >>id=`Mydiv<<
>  >>`Mydiv<<
> I'm not sure how it works.  

The ` does escape the wikiword, but unfortunately the escape characters
embedded in the string prevent the id from being recognized as a valid

Which leaves us with the bug.  I'm still thinking that perhaps the
best solution would be to say that a wikiword cannot immediately
follow a '#' or '=' (and perhaps ':' as well).


More information about the pmwiki-users mailing list