I am working on adding "hats" to my Greek letters in RMarkdown to symbolize parameters. It seems that the preview/hover over mode in RMarkdown shows exactly what I want. However, when I knit the markdown file to an HTML it seems like the hat has moved and now covers the whole term rather than just my one letter. What's confusing me is clearly my code is doing what I want since that's what I can see in R, but it isn't knitting the same as this preview. Here's an example of the code:
$\hat{\beta}_{0}$
which in R preview nicely as:

but in my HTML it knits into this:

Thanks in advance!
