fix underscores

Fix for "broken underscores" in gfm inline text as of Issue #491 and #494.
Includes extended tests. 

Source `jshint`ed on some code lines.

Note: Test # 10 def_blocks.text is still broken (as was before).