it's not a matter of smartness, I think -- you just need to tweak the parser to ignore things inside <pre> or <code> blocks