Currently you have to put a belt outside to make the connection, but if you end an underground belt right outside, it won't make a connection (so you have to end the underground belt 1 tile early and stick a belt in front of it).
It'd be nice to be able to end an underground belt right against the factory and have it create a belt of the appropriate kind on the other side.