# On Converting Jupyter notebook to PDF, latex maths formulas not giving expected output

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?