-
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.
Merge pull request #7305 from quarto-dev/bugfix/7917b
better fix for #7197 and fenced code blocks
- Loading branch information
Showing
2 changed files
with
51 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: "Table subcaption issue" | ||
format: html | ||
_quarto: | ||
tests: | ||
html: | ||
ensureFileRegexMatches: | ||
- | ||
- "\\(a\\) Cars" | ||
- "\\(b\\) Pressure" | ||
- [] | ||
ensureHtmlElements: | ||
- | ||
- "a[href=\"#tbl-example\"].quarto-xref" | ||
- "a[href=\"#tbl-example-1\"].quarto-xref" | ||
- "a[href=\"#tbl-example-2\"].quarto-xref" | ||
--- | ||
|
||
|
||
```{r} | ||
#| label: tbl-example | ||
#| tbl-cap: "Example" | ||
#| tbl-subcap: | ||
#| - "Cars" | ||
#| - "Pressure" | ||
#| echo: fenced | ||
library(knitr) | ||
kable(head(cars)) | ||
kable(head(pressure)) | ||
``` | ||
|
||
See @tbl-example-1, @tbl-example-2, @tbl-example. |