RStudio looks for the first pandoc in your $PATH See https://support.rstudio.com/hc/en-us/community/posts/239075008-pandoc
Using pandoc conversion of the markdown file to html produces identical results in Safari, Chrome and Firefox
$ 506: /usr/local/bin/pandoc -v
pandoc 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.4
pandoc-types
is a pandoc internal Haskell
thing. texmath
should have no effect on what your example does and skylighting
is just syntax highlighting.
In years using it I can't think of anything major that pandoc
has ever broken with a new release.
What the downstream systems do with RStudio markdown or html remains a mystery.