-
Notifications
You must be signed in to change notification settings - Fork 331
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 #10906 from quarto-dev/fix/table-style-new-pandoc
Handle Pandoc change in table classes
- Loading branch information
Showing
17 changed files
with
86 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
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,2 @@ | ||
*_files/ | ||
*.html |
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,32 @@ | ||
--- | ||
title: Markdown Tables | ||
--- | ||
|
||
They should be styled by Quarto | ||
|
||
| Col1 | Col2 | Col3 | | ||
|------|------|------| | ||
| A | B | C | | ||
| E | F | G | | ||
| A | G | G | | ||
|
||
: My Caption {#tbl-letters} | ||
|
||
See @tbl-letters. | ||
|
||
## Computational table | ||
|
||
<!-- This is equivalent to intermediate markdown from a `knitr::kable()` output with `echo: false` --> | ||
|
||
:::: cell | ||
::: cell-output-display | ||
| Sepal.Length | Sepal.Width | Petal.Length | Petal.Width | Species | | ||
|-------------:|------------:|-------------:|------------:|:--------| | ||
| 5.1 | 3.5 | 1.4 | 0.2 | setosa | | ||
| 4.9 | 3.0 | 1.4 | 0.2 | setosa | | ||
| 4.7 | 3.2 | 1.3 | 0.2 | setosa | | ||
| 4.6 | 3.1 | 1.5 | 0.2 | setosa | | ||
| 5.0 | 3.6 | 1.4 | 0.2 | setosa | | ||
| 5.4 | 3.9 | 1.7 | 0.4 | setosa | | ||
::: | ||
:::: |
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,2 @@ | ||
*.html | ||
*_files |
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
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
Binary file added
BIN
+3.38 KB
...eenshots__/html-tables.spec.ts/win32/Markdown-tables-are-styled-correctly-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.7 KB
...eenshots__/html-tables.spec.ts/win32/Markdown-tables-are-styled-correctly-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,10 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('Markdown tables are styled correctly', async ({ page }) => { | ||
await page.goto('html/markdown-tables.html'); | ||
await expect(page.getByRole('figure', { name: 'Table 1: My Caption' }).locator('table')).toHaveScreenshot() | ||
await expect(page.locator('a.quarto-xref[href="#tbl-letters"]')).toContainText('Table 1'); | ||
|
||
await expect(page.locator('#computational-table table')).toHaveScreenshot() | ||
|
||
}); |