better emphasis handling

This adds better support for emphasis concealments. For example, we can now have underscores within words without triggering the emphasis concealment and breaking everything. Seems to fix #1.