I am writing a PDF report in Rmarkdown. Some Latex codes work (\newpage) but some HTML do not (<'h1>Text</h1'>). For example, if I use ## for headings, it works. But if I want to use , \begin{center} Text \end{center} to centralize the text does not work. I reinstalled R and Rstudio and tinytex package. If i need to include more details, please let me know.
Example:
#### Company data:
##### Name: `r d1$name`;
##### Code: `r d1$code`;
##### Size: `r d1$size`;
##### Year: 2021.
This code above works. But if I want to use // to start a new line, " "(double space) or <h4></h4> it will not work