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

a.steenveld at id.umcn.nl a.steenveld at id.umcn.nl
Tue Mar 7 10:40:34 CST 2006


There is a markup for writing '*this is bold*', note the single quotes around the text. Well, I don't like the single quotes, I want *this is bold*.

Changing the markup macro for it was not dificult, as a matter of facts it is given as an example in the configuration file. 

Markup("'*", "inline", "/\\*(.*?)\\*/", "<b>$1</b>");    # '*bold*'

But when I removed the single quotes from the macro all my indents were lost (and I fot al kind of superfluous <b></b> markups in my HTML results. On close inspection of the macro it became clear that after my change ** was recognised as 'start bold, do noting and then stop bold'. Changed '*' into '+' and everyting worked fine.

Markup("'*", "inline", "/\\*(.+?)\\*/", "<b>$1</b>");    # '*bold*'

-- Andre Steenveld.

PS: typing this message took me more time than fixing this typo. :)

More information about the pmwiki-users mailing list