domchristie/to-markdown — pull request #12 by garann (2012-04-12 22:16:52+00:00)
Title: Add a patterns for spans with inline bold/italic styles

I've been using your code for a WYSIWYG that switches back and forth between that and markdown mode. In some browsers, the execCommand function which provides styling and other functionality to selected text in contentEditable elements inserts bolding/italicizing as a span containing an inline style. This should catch those.