rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
215 stars 68 forks source link

Inline code chunks that produce HTML no longer inlined #307

Closed cpsievert closed 2 years ago

cpsievert commented 2 years ago

Introduced by #306. Here's a reprex of the (new) issue.

---
output: 
  html_document:
    keep_md: true
---

Some inline `r htmltools::tags$span("text")`.

Note that the resulting HTML no longer has "text" inlined because the resulting markdown looks like:

Some inline 
```{=html}
<span>text</span>

.


when it should be:

Some inline <span>text</span>{=html}.