[pmwiki-users] Simple markup question...
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 20 13:57:04 CDT 2006
On Wed, Sep 20, 2006 at 02:37:56PM -0400, The Editor wrote:
> Thanks Pm. I tried something similar but must have been off a
> character or two somewhere. Your's almost worked perfectly.
>
> Perfectly in fact except when the content (in my case a page variable)
> contains text with one or more line returns, which cause the markup to
> fail. Then of course, I still get all the html.
Change the '/e' in the pattern to be '/es' or '/esi':
Markup('varkeep', '>{$var}',
'/\\(:keep (.*?):\\)/esi',
"Keep(PSS('$1'))");
Pm
More information about the pmwiki-users
mailing list