The above is a “YAML header”.
The below is R Code, only R can be written there.
print("hello world!")
## [1] "hello world!"
Outside is just regular markdown
this \(x^2\) is inline
But this equation below is standalone
\[ a^2 = c^2 \]
:)