added unit test and fix for mismatched emphasis handling
missing output of mismatched opening marker