Let $\{X_{n}\}$ be a sequence of random variables converging almost surely to a random variable $X$ (i.e. $X_{n} \overset{a.s.}{\to} X$).
Let $g: \mathbb{R} \to \mathbb{R}$ be a measurable function and let $D_{g} = \{x : x \text{ is discontinuity point of $g$}\}$. Suppose that $$\mathbb{P}(X \in D_{g}) = 0$$
I am wondering if it is true that $g(X_{n})\overset{a.s.}{\to} g(X)$?
My intuition is yes, but I am have difficulty pinning down an exact proof. I am looking for a proof of this if it is true, or a counterexample if it is not.