-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test file for embed and verbatim
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
```` | ||
|