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

Dominique Faure dominique.faure at gmail.com
Tue Aug 8 19:11:22 CDT 2006


Hi,

Developing a new cookbook recipe involving divs, my kindly beta-tester
found that using a Wikiword as a style identifier breaks the page
output.

An example is available at http://www.pmwiki.org/wiki/Test/WikiWordsAndStyles

The reason is that during the page markup translation, links/wikiwords
are handled before blocks/styles, so such identifier is recognized and
interpreted as a wikiword wherever it could occur in the page.

A workaround could be to introduce non wikiword chars allowed in
identifiers (underscores,...) or even use the fact that forbidden
chars in identifiers are replaced by underscore:

(:div id='an identifier with forbidden chars':)
...

In the markup above, the identifier is rendered as:

<div id='an_identifier_with_forbidden_chars'>
...

Regards,
Dom




More information about the pmwiki-users mailing list