Ben Stallings said...
> A client wants me to define a custom markup so that this wiki text:
> 
> * list item\\+
> another line
> 
> will produce this HTML:
> 
> <li>list item<br />
> <span class="whitespace">&nbsp;<span><br />
> another line</li>
> 
> Using this markup definition:
> 
> Markup('\\+','inline','/\\\\\\\\\\+/',"<br /><span 
> class='whitespace'>&nbsp;</span><br />");
> }
> 
> gets me the desired result -- if there's no linebreak after the \\+.  If 
> there is a linebreak, as in the desired wiki text, the wiki dutifully 
> ends the list and puts the second line in a new paragraph.

Try

Markup('\\+','<split',
        '/\\\\\\\\\\+\n/',
        "<br /><span class='whitespace'>&nbsp;</span><br />");

-- 
Cheers,
Marc


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to