I have a markdown cell in a Jupyter notebook (.ipynb) with the following content.
$\\newcommand{\\paren}[1]{\\left(#1\\right)}$ $\\paren{\\beta^2}$