this seems overly complex. I'd say we *always* ignore `code` and `pre`. This should simplify your code.