[pmwiki-users] line breaks in custom markup
marc
gmane at auxbuss.com
Thu Jan 25 06:34:05 CST 2007
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"> <span><br />
> another line</li>
>
> Using this markup definition:
>
> Markup('\\+','inline','/\\\\\\\\\\+/',"<br /><span
> class='whitespace'> </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'> </span><br />");
--
Cheers,
Marc
More information about the pmwiki-users
mailing list