-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4735 from quarto-dev/knitr/verbatim-engine-improv…
…ment
- Loading branch information
Showing
7 changed files
with
136 additions
and
53 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
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
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
File renamed without changes.
50 changes: 50 additions & 0 deletions
50
tests/docs/smoke-all/knitr/embed-verbatim-engine/knitr-embed-verbatim.qmd
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 | ||
``` | ||
```` | ||
|
File renamed without changes.
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