Fixed the issue described in jgm/stmd#51

Implemented a stack of emphasis openers that are reviewed every time a
potential closer is discovered.
Note that two more tests are failing - those are actually not conforming
to the rules described in the specification.