Changed markup_commands substitution

Markup commands should be replaced by an empty string to make sure markup used inside a word doesn't split that word:


`ran\emph{do}m word` should become `random word` after removing markup commands and not `ran dom word`.