I'm using RStudio (current version) on a Windows 10. The math rendering works but when I add additional aspects to make the document more clean, I run into the problem of going from pdf to html and vice-versa. For instance, the following is knit to pdf with LaTex "code":
You can't really tell, but the R Markdown link (highlighted in the html) works for the pdf as well. The only difference is that the html does not display the theorem. The only way to mimic it, is to use html code but its not the same. Is there a way to make the html display the LaTex input just like the pdf? If not, then how does one deal with the issue of going from html to LaTex and vice-versa?