Fix for incorrect markup string completion.