[pmwiki-users] Bold text and indented text... its easy to make a mistake.
Bronwyn Boltwood
bronwyn at bronwynb.info
Tue Mar 7 12:01:27 CST 2006
On 3/7/06, a.steenveld at id.umcn.nl <a.steenveld at id.umcn.nl> wrote:
> > From: Patrick R. Michaud [mailto:pmichaud at pobox.com]
> ...
> > Note that this will cause you some problems -- many times we have
> > asterisks on a line that aren't meant to indicate a bold term. For
> > example, try some of these:
> >
> > * This is a bullet item.
> > * But this *isn't* a bullet item (guess why!)
> >
> > The formula dist = sqrt( x * x + y * y ) is likely to
> > be an issue too.
>
> I got the picture, then the idea of a quote is not so bad after al.
But you might want to try these patterns that Pm made for me a while
back -- they're a lot less troublesome:
## **bold**
Markup('**', 'inline',
'/(?<!\\*)\\*\\*(?>(\\S.*?)\\*\\*)(?<!\\s\\*\\*)(?!\\*)/',
'<strong>$1</strong>');
#
## //italic//
Markup('//', 'inline',
'/(?<!:)\\/\\/(\\S.*?[^\\s:])\\/\\//',
'<em>$1</em>');
More information about the pmwiki-users
mailing list