'rmarkdown not running chunks in vscode

Im trying to migrate to vscode, since I can do more things with it than rstudio. When I try to use my saved Rmd, vscode doesn't recognize that its working with chunks despite is configured in rmarkdown. When they open, they look like this: enter image description here

But when I open it from a blank HTML template, they work like they have to do: enter image description here

any posible fin I would appreciate it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source