title: How can I write a degree symbol in rmarkdown2 for HTML and PDF output?
body: <p>I want to write a degree symbol in an rmarkdown file that is rendered correctly both for HTML and PDF output. A regular <code>°</code> works for HTML, and a <code>$^\circ$</code> works for the PDF - but what works for both cases?</p>