Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568.