title: Markdown language inside R chunk
body: <p>I am using R studio Version 0.99.485.
  I have to do many reports based on one input vector, so I have decided to write for loop in R Markdown (R studio).</p>
  
  <p>I have a problem that seems easy to solve but I couldn't find the answer on net.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>```{r forensis, results='asis', echo=FALSE}
  load(file = "E:/data/R/Forensic_reports/fdata.RData")
  for (i in 1:length(osobni_podaci$Oib)) {
    cat("### UPIT ZA OIB: ", oibreq[i], '  \n')
    cat('### STATUS OIB-A  \n')
    cat('Status: ',ifelse(oib_status$X_status[i] == 1, 'Aktivan', 'Neaktivan'), '  \n')
    cat('### OSNOVNI PODACI  \n')
    cat("### Ime: ", osobni_podaci$Ime[i], '  \n')
    cat("### Prezime: ", osobni_podaci$Prezime[i], '  \n')
  }
  ```
  </code></pre>
  
  <p>Here is the output:</p>
  
  <pre><code>UPIT ZA OIB: 10755053324
  STATUS OIB-A
  Status: Aktivan
  ### OSNOVNI PODACI
  ### Ime: MISLAV
  ### Prezime: ŠAGOVAC
  ### UPIT ZA OIB: 93335620125
  ### STATUS OIB-A
  Status: Aktivan
  ### OSNOVNI PODACI
  ### Ime: SUZANA
  ### Prezime: CESAREC NOETHIG
  </code></pre>
  
  <p>It is not seen from the output, but the headings are right for first 3 lines.</p>
  
  <p>Then, after the 4th line I doesn't recognize hashtags ### as 'Header 3', but instead just print three ###.</p>
  
  <p>In nutshell, <strong>how to preserve markdown language rules inside r chunks?</strong></p>