[pmwiki-users] Bold text and indented text... its easy to make a mistake.

Patrick R. Michaud pmichaud at pobox.com
Wed Mar 8 07:45:28 CST 2006


On Wed, Mar 08, 2006 at 12:54:50PM +0100, a.steenveld at id.umcn.nl wrote:
> Here is another option.
>  
> Markup("_bold_",   "inline", 
>   "/(?<!')_([^_]+?)_(?<!')/", "<b>$1</b>");    # _bold_

FWIW, this can be changed to

    Markup("_bold_",   ">'_", 
      "/_([^_]+?)_/", "<b>$1</b>");    # _bold_

and it works much the same.  The ">'_" specification (2nd argument)
says that this rule should be performed after processing the '_
rule.

Pm




More information about the pmwiki-users mailing list