I have a rmd document where I have the following
```{r code_block, echo=FALSE} A = matrix(c(1,3,0,1),2,2) B = matrix(c(5,3,1,4),2,2) ``` $$ \\begin{bmatrix} 1
hello you can use library(printr) in a markdown block
library(printr)
knitr::kable(A , caption = "matrix A")
from https://yihui.name/printr/
like this
```{r code_block, echo=FALSE} A = matrix(c(1,3,0,1),2,2) B = matrix(c(5,3,1,4),2,2) knitr::kable(A , caption = "matrix A") ```