Updated glossary/highlight fix.

This change now allows the removal of highlighting `mark` tags from appearing inside code boxes.
Merge pull request #916 from Chris--A/patch-6

Updated glossary/highlight fix.