Assume $f : I \rightarrow \mathbb{R}$ is a non-decreasing on an open interval $I$ and that $f$ satisfies the Intermediate value property or Darboux's property on $I$ (that is, for any $a < b$ in $I$ and any $L$ between $f(a)$ and $f(b)$, there exists $c \in [a, b]$ such that $ f (c) = L)$.
Then, prove that $f$ is continuous.
However, I know that a function can be discontinuous and also satisfy the IVT at the same time. Could someone point me in the right direction?