Maybe they could even expose the functionality. Also see: https://github.com/rstudio/rstudio/issues/7922
If they don't want:
* adapt header to required format above, i.e. prefix langauge with `#`, remove all commas (with regex).
* render.
* go through all headers and replace them with the old version.
Would be a nice pre-commit hook.
Seem like RStudio visual mode uses something like this to convert
.Rmd
into standard pandoc markdown:with code chunks: