preserve external markup classes fix