-
Notifications
You must be signed in to change notification settings - Fork 310
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 #10876 from quarto-dev/bugfix/10821
Be more conservative in stripping `echo: fenced` from fenced output
- Loading branch information
Showing
5 changed files
with
40 additions
and
2 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
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,19 @@ | ||
--- | ||
title: issue-10821 | ||
format: html | ||
_quarto: | ||
tests: | ||
html: | ||
ensureFileRegexMatches: | ||
- ['<span class="in">#\| fig-cap: ''This figure will have ''''echo: fenced'''' in its caption.''</span>'] | ||
- [] | ||
# - ['fig-cap'] | ||
--- | ||
|
||
```{python} | ||
#| echo: fenced | ||
#| label: fig-1 | ||
#| fig-cap: "This figure will have 'echo: fenced' in its caption." | ||
import matplotlib.pyplot as plt | ||
plt.plot([1,2,3]) | ||
``` |
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,18 @@ | ||
--- | ||
title: issue-10821 | ||
format: html | ||
_quarto: | ||
tests: | ||
html: | ||
ensureFileRegexMatches: | ||
- ['<span class="in">#\| fig-cap: "This figure will have ''echo: fenced'' in its caption."</span>'] | ||
- [] | ||
--- | ||
|
||
```{r} | ||
#| echo: fenced | ||
#| whatever: "echo: fenced" | ||
#| fig-cap: "This figure will have 'echo: fenced' in its caption." | ||
#| label: fig-1 | ||
plot(1:100) | ||
``` |