LaTeX \overline not Working with Multiple Digits

Hello

I use a lot of LaTeX formatting in my Jupyter Notebooks, and I’m used
to running into situations where certain LaTeX code just won’t work. The
following, however, is throwing me for a bit of a loop:

I’m trying to use \overline{} to mark a repeating sequence of decimal
digits. While it works perfectly fine with a single digit $3.\overline{3}$,
the overline disappears when I add another digit (with no error returned).

It is possible to use \overline{} over and over again for each digit,
like so:

$3.\overline{3}\overline{0}\overline{7}\overline{6}\overline{9}$

But this is messy and clunky, and could grow massive rather quickly.

Does anyone know what’s going on here? Or of a workaround?

I’m using Jupyter Lab Version 4.2.5, with Python 3 (ipykernel), on Windows 10.

Thanks for reading! :slightly_smiling_face: