I have written as follows in markdown:

$\hat{\beta_0}$, it is giving expected output in Jupyter notebooks, but on converting them into pdf it is giving output exactly as it is. How to solve this?

I have written as follows in markdown:

$\hat{\beta_0}$, it is giving expected output in Jupyter notebooks, but on converting them into pdf it is giving output exactly as it is. How to solve this?