Normalize markup