Are connectedness preserving monotone functions continuous?

90 Views Asked by At

Does there exist any monotone function $f : \Bbb R \longrightarrow \Bbb R$ which takes connected sets to connected sets without being continuous?

If the answer is "no" then can we extend this result to arbitrary topological space?