Fixed bug with intraword emphasis.

Closes #1066.