putting an inline repeater in the line (like a hub) would also solve the problem.
It would need to be a switch. A simple hub or repeater (by definition) will, in fact, cure the single segment eletrical limitation of 100m. However, it will do nothing for the latency requirement of half-duplex ethernet segments (52us in 10Mb, 5.2us in 100Mb). In order for the "CD" part of CSMA/CD to work, there has to be a switch or some kind of store-and-forward, full-duplex device in the middle.