Skip to content

Commit

Permalink
Add test file for embed and verbatim
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Sep 5, 2023
1 parent ef3b2a0 commit dab8235
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions tests/docs/smoke-all/2023/03/09/knitr-embed-verbatim.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
format: html
engine: knitr
_quarto:
tests:
html:
# echo: false has been set and nothing should be including
ensureHtmlElements:
-
- "#verbatim div.sourceCode pre code.default"
- "#embed div.sourceCode pre code.r"
- "#fenced-echo div.sourceCode pre code.markdown"
- []
ensureFileRegexMatches:
-
- "this is code\\.R"
- "`{3}\\{verbatim\\}"
- []
latex:
ensureFileRegexMatches:
-
- "\\\\NormalTok\\{Some content\\}"
- "\\\\FunctionTok\\{cat\\}"
- "(\\\\textasciigrave\\{\\}){3}\\\\{verbatim\\\\}"

---

## Verbatim {#verbatim}

```{verbatim}
Some content
```

## Embed {#embed}

```{embed, file = "code.R"}
```

## Verbatim fenced-echo {#fenced-echo}

````{verbatim}
#| echo: fenced
#| lang: markdown
# Title
```{r}
1 + 1
```
````

0 comments on commit dab8235

Please sign in to comment.