tommcfarlin/markdown-code-for-wordpress — pull request #5 by GeertDD (2013-07-18 10:56:04+00:00)
Title: Making the regexes for strong and emphasized text a bit more foolproof.

An intentional single asterisk after a word should not be considered the start of emphasized text. Also, whole lines of asterisks (edge case) should be left untouched.

Basically the ‘trick’ is to make sure the opening asterisk(s) are not followed by a space or even more asterisks.

I’m sure many more edge cases can be thought of to [break the regexes](http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags?answertab=votes#tab-top) but it should be a bit more solid with these tweaks.