[pmwiki-users] custom markup

Petko Yotov 5ko at 5ko.fr
Sun Apr 5 07:13:16 CDT 2009


On Sunday 05 April 2009 11:51:00 nikos wrote:
> and I would like to be able to use
> the symbol
> 	<br>
> parallel to the symbol
> 	\\
> to create new lines.
>
> Is this possible, and how?

Markup('<br>','inline','/&lt;br\\s*\\/?&gt;/i',"<br />");

# optional, if you may have <br clear='all'>
Markup('<br clear=all>','inline',
  '/&lt;br\\s+clear=([\'"]?)all\\1\\s*\\/?&gt;/i',"<br clear='all' />");


> I have read the CustomMarkup and the CustomMarkupAlt pages,
> and tried some things but they didn't work

One thing to know is that the symbols "<" and ">" are encoded in the page 
source text as "&lt;" and "&gt;" and in custom markup the encoded ones should 
be used.

Thanks,
Petko



More information about the pmwiki-users mailing list