diff options
| author | ThomasSoeiro <[email protected]> | 2024-06-07 21:15:40 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-07 12:15:40 -0700 |
| commit | cd15313216c75e1ff3577da728172db9ff69a6b6 (patch) | |
| tree | f9d471e58b1b0161fe0aa404eb19b6ccc5059314 /test/command | |
| parent | bfb0475d677bd5e7a61629107d99f2371a75e2d1 (diff) | |
Don't emit unnecessary classes in HTML tables (#9376)
Pandoc used to emit a `header` class on the `tr` element that forms the table header. This is no longer needed, because `head > tr` will do the same thing.
Similarly, pandoc used to emit `even` and `odd` classes on `tr`s, allowing striped styling. This is no longer needed, because one can use e.g. `tbody tr:nth-child(2n)`.
We now omit these classes, which have a good chance of conflicting with classes used for other things.
Closes #9325.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/1166.md | 10 | ||||
| -rw-r--r-- | test/command/1881.md | 6 | ||||
| -rw-r--r-- | test/command/2606.md | 6 | ||||
| -rw-r--r-- | test/command/2649.md | 18 | ||||
| -rw-r--r-- | test/command/3314.md | 4 | ||||
| -rw-r--r-- | test/command/3432.md | 44 | ||||
| -rw-r--r-- | test/command/3494.md | 8 | ||||
| -rw-r--r-- | test/command/3499.md | 2 | ||||
| -rw-r--r-- | test/command/3667.md | 2 | ||||
| -rw-r--r-- | test/command/6441.md | 4 | ||||
| -rw-r--r-- | test/command/6481.md | 4 | ||||
| -rw-r--r-- | test/command/6549.md | 4 | ||||
| -rw-r--r-- | test/command/7064.md | 4 | ||||
| -rw-r--r-- | test/command/7112.md | 2 | ||||
| -rw-r--r-- | test/command/7214.md | 4 | ||||
| -rw-r--r-- | test/command/7713.md | 4 | ||||
| -rw-r--r-- | test/command/7847.md | 8 | ||||
| -rw-r--r-- | test/command/7871.md | 2 | ||||
| -rw-r--r-- | test/command/7919.md | 24 | ||||
| -rw-r--r-- | test/command/8110.md | 6 | ||||
| -rw-r--r-- | test/command/8216.md | 6 | ||||
| -rw-r--r-- | test/command/8257.md | 8 | ||||
| -rw-r--r-- | test/command/8307.md | 2 | ||||
| -rw-r--r-- | test/command/8659.md | 8 | ||||
| -rw-r--r-- | test/command/8789.md | 6 | ||||
| -rw-r--r-- | test/command/9002.md | 2 |
26 files changed, 99 insertions, 99 deletions
diff --git a/test/command/1166.md b/test/command/1166.md index 756a065db..20829a3b1 100644 --- a/test/command/1166.md +++ b/test/command/1166.md @@ -17,28 +17,28 @@ col 1 col 2 ^D <table> <thead> -<tr class="header"> +<tr> <th>col 1</th> <th>col 2</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>1</td> <td>Second column of row 1.</td> </tr> -<tr class="even"> +<tr> <td><p>2</p></td> <td><p>Second column of row 2. Second line of paragraph.</p></td> </tr> -<tr class="odd"> +<tr> <td><p>3</p></td> <td><ul> <li>Second column of row 3.</li> <li>Second item in bullet list (row 3, column 2).</li> </ul></td> </tr> -<tr class="even"> +<tr> <td></td> <td>Row 4; column 1 will be empty.</td> </tr> diff --git a/test/command/1881.md b/test/command/1881.md index 7a2468c1b..afa75c74e 100644 --- a/test/command/1881.md +++ b/test/command/1881.md @@ -3,7 +3,7 @@ <table> <caption>Demonstration of simple table syntax.</caption> <thead> -<tr class="header"> +<tr> <th align="right">Right</th> <th align="left">Left</th> <th align="center">Center</th> @@ -11,7 +11,7 @@ </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td align="right">12</td> <td align="left">12</td> <td align="center">12</td> @@ -111,7 +111,7 @@ ``` % pandoc -f html -t native <table> -<tr class="odd"> +<tr> <td style="text-align: right;">12</td> <td style="text-align:left;">12</td> <td style="text-align: center">12</td> diff --git a/test/command/2606.md b/test/command/2606.md index 53eaa0d06..cf9132174 100644 --- a/test/command/2606.md +++ b/test/command/2606.md @@ -6,7 +6,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td><p>* hello</p></td> </tr> </tbody> @@ -22,7 +22,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td><ul> <li>hello</li> </ul></td> @@ -40,7 +40,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td><p><code>* hello</code></p></td> </tr> </tbody> diff --git a/test/command/2649.md b/test/command/2649.md index 7225ae0f4..2308e2744 100644 --- a/test/command/2649.md +++ b/test/command/2649.md @@ -7,7 +7,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> </tr> </tbody> </table> @@ -31,24 +31,24 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td><p>peildatum Simbase</p></td> <td><p>november 2005</p></td> <td colspan="2"><p><strong>uitslagen Flohrgambiet</strong></p></td> </tr> -<tr class="even"> +<tr> <td><p>totaal aantal partijen Simbase</p></td> <td><p>7.316.773</p></td> <td><p>wit wint</p></td> <td><p>53%</p></td> </tr> -<tr class="odd"> +<tr> <td><p>percentage (en partijen) Flohrgambiet</p></td> <td><p>0.023 % (1.699)</p></td> <td><p>zwart wint</p></td> <td><p>27%</p></td> </tr> -<tr class="even"> +<tr> <td><p>percentage Flohrgambiet in aug 2003</p></td> <td><p>0.035 %</p></td> <td><p>remise</p></td> @@ -80,26 +80,26 @@ ^D <table> <thead> -<tr class="header"> +<tr> <th><p>Plaats</p></th> <th><p>Rijder</p></th> <th><p>Aantal</p></th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td><p>1</p></td> <td style="text-align: left;"><p><a href="Sébastien_Loeb" title="wikilink">Sébastien Loeb</a></p></td> <td><p>78</p></td> </tr> -<tr class="even"> +<tr> <td><p>2</p></td> <td style="text-align: left;"><p><strong><a href="Sébastien_Ogier" title="wikilink">Sébastien Ogier</a></strong></p></td> <td><p>38</p></td> </tr> -<tr class="odd"> +<tr> <td><p>10</p></td> <td style="text-align: left;"><p><a href="Hannu_Mikkola" title="wikilink">Hannu Mikkola</a></p></td> diff --git a/test/command/3314.md b/test/command/3314.md index 064b04cbd..6c78254ad 100644 --- a/test/command/3314.md +++ b/test/command/3314.md @@ -18,12 +18,12 @@ See #3315 and <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.htm <col style="width: 15%" /> </colgroup> <tbody> -<tr class="odd"> +<tr> <td>First</td> <td>12.0</td> <td>Example row spanning lines</td> </tr> -<tr class="even"> +<tr> <td>Second</td> <td>5.0</td> <td>Another</td> diff --git a/test/command/3432.md b/test/command/3432.md index 381f8af87..aaa8526be 100644 --- a/test/command/3432.md +++ b/test/command/3432.md @@ -28,24 +28,24 @@ List-table with header-rows and widths options. <col style="width: 54%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th>Treat</th> <th>Quantity</th> <th>Description</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Albatross</td> <td>2.99</td> <td>On a stick!</td> </tr> -<tr class="even"> +<tr> <td>Crunchy Frog</td> <td>1.49</td> <td>If we took the bones out, it wouldn't be crunchy, now would it?</td> </tr> -<tr class="odd"> +<tr> <td>Gannet Ripple</td> <td>1.99</td> <td>On a stick!</td> @@ -79,24 +79,24 @@ List-table whose widths is "auto". <table> <caption>Frozen Delights!</caption> <thead> -<tr class="header"> +<tr> <th>Treat</th> <th>Quantity</th> <th>Description</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Albatross</td> <td>2.99</td> <td>On a stick!</td> </tr> -<tr class="even"> +<tr> <td>Crunchy Frog</td> <td>1.49</td> <td>If we took the bones out, it wouldn't be crunchy, now would it?</td> </tr> -<tr class="odd"> +<tr> <td>Gannet Ripple</td> <td>1.99</td> <td>On a stick!</td> @@ -130,24 +130,24 @@ List-table with header-rows which is bigger than 1. Only the first row is treate <table> <caption>Frozen Delights!</caption> <thead> -<tr class="header"> +<tr> <th>Treat</th> <th>Quantity</th> <th>Description</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Albatross</td> <td>2.99</td> <td>On a stick!</td> </tr> -<tr class="even"> +<tr> <td>Crunchy Frog</td> <td>1.49</td> <td>If we took the bones out, it wouldn't be crunchy, now would it?</td> </tr> -<tr class="odd"> +<tr> <td>Gannet Ripple</td> <td>1.99</td> <td>On a stick!</td> @@ -176,17 +176,17 @@ List-table without header-rows. <table> <caption>Frozen Delights!</caption> <tbody> -<tr class="odd"> +<tr> <td>Albatross</td> <td>2.99</td> <td>On a stick!</td> </tr> -<tr class="even"> +<tr> <td>Crunchy Frog</td> <td>1.49</td> <td>If we took the bones out, it wouldn't be crunchy, now would it?</td> </tr> -<tr class="odd"> +<tr> <td>Gannet Ripple</td> <td>1.99</td> <td>On a stick!</td> @@ -219,24 +219,24 @@ List-table with empty cells. You need a space after '-', otherwise the row will <table> <caption>Frozen Delights!</caption> <thead> -<tr class="header"> +<tr> <th>Treat</th> <th>Quantity</th> <th>Description</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Albatross</td> <td>2.99</td> <td></td> </tr> -<tr class="even"> +<tr> <td>Crunchy Frog</td> <td></td> <td>If we took the bones out, it wouldn't be crunchy, now would it?</td> </tr> -<tr class="odd"> +<tr> <td>Gannet Ripple</td> <td>1.99</td> <td>On a stick!</td> @@ -266,7 +266,7 @@ List-table with a cell having a bulletlist <table> <caption>Frozen Delights!</caption> <tbody> -<tr class="odd"> +<tr> <td>Albatross</td> <td>2.99</td> <td><ul> @@ -274,12 +274,12 @@ List-table with a cell having a bulletlist <li>In a cup!</li> </ul></td> </tr> -<tr class="even"> +<tr> <td>Crunchy Frog</td> <td>1.49</td> <td>If we took the bones out, it wouldn't be crunchy, now would it?</td> </tr> -<tr class="odd"> +<tr> <td>Gannet Ripple</td> <td>1.99</td> <td>On a stick!</td> diff --git a/test/command/3494.md b/test/command/3494.md index 7c480fde6..ba526620c 100644 --- a/test/command/3494.md +++ b/test/command/3494.md @@ -14,22 +14,22 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td style="text-align: right;"><span><strong>ﺍ</strong></span></td> <td style="text-align: left;"></td> <td style="text-align: left;"></td> </tr> -<tr class="even"> +<tr> <td style="text-align: right;"><strong>ﺄﺤﺴﻨﺘـ(ﻭﺍ) IV</strong></td> <td style="text-align: left;"><em><span>ʾaḥsant(ū)</span></em></td> <td style="text-align: left;">thank you</td> </tr> -<tr class="odd"> +<tr> <td style="text-align: right;"><em>blah</em></td> <td style="text-align: left;"><em>blah</em></td> <td style="text-align: left;"><em>blah</em></td> </tr> -<tr class="even"> +<tr> <td style="text-align: right;">blah</td> <td style="text-align: left;">blah</td> <td style="text-align: left;">blah</td> diff --git a/test/command/3499.md b/test/command/3499.md index ba9f03589..4058e887b 100644 --- a/test/command/3499.md +++ b/test/command/3499.md @@ -9,7 +9,7 @@ Org-mode tables can't be on the same line as list markers: <li>|something|</li> <li><table> <tbody> -<tr class="odd"> +<tr> <td>else</td> </tr> </tbody> diff --git a/test/command/3667.md b/test/command/3667.md index 97de8f598..07cd93c72 100644 --- a/test/command/3667.md +++ b/test/command/3667.md @@ -4,7 +4,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td><a href="http://example.com/">link text</a></td> </tr> </tbody> diff --git a/test/command/6441.md b/test/command/6441.md index d0488767c..621e536d1 100644 --- a/test/command/6441.md +++ b/test/command/6441.md @@ -7,13 +7,13 @@ ^D <table class="table-dark"> <thead> -<tr class="header"> +<tr> <th>h1</th> <th>h2</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>c1</td> <td>c2</td> </tr> diff --git a/test/command/6481.md b/test/command/6481.md index 06b64605c..fb40114e0 100644 --- a/test/command/6481.md +++ b/test/command/6481.md @@ -18,7 +18,7 @@ <col style="width: 69%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th style="text-align: center;">Col 1</th> <th style="text-align: center;">Col 2</th> <th style="text-align: center;">Col 3</th> @@ -26,7 +26,7 @@ </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td style="text-align: center;">High</td> <td style="text-align: center;">Med</td> <td style="text-align: center;">Med</td> diff --git a/test/command/6549.md b/test/command/6549.md index e41f4b76a..4ba11b462 100644 --- a/test/command/6549.md +++ b/test/command/6549.md @@ -8,13 +8,13 @@ <table> <caption>Test table</caption> <thead> -<tr class="header"> +<tr> <th>Column1</th> <th>Column2</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Data1</td> <td><ul> <li>data1</li> diff --git a/test/command/7064.md b/test/command/7064.md index 58b72e363..2690b928d 100644 --- a/test/command/7064.md +++ b/test/command/7064.md @@ -15,14 +15,14 @@ <col style="width: 70%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th>Version</th> <th>Date</th> <th>Description</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>0.1.0</td> <td>18/02/2013</td> <td>Initial Release</td> diff --git a/test/command/7112.md b/test/command/7112.md index a75b9250a..e2254170d 100644 --- a/test/command/7112.md +++ b/test/command/7112.md @@ -6,7 +6,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td>setting</td> <td><code>echo PATH="path"</code></td> </tr> diff --git a/test/command/7214.md b/test/command/7214.md index 43bf9e4ca..1d29b0443 100644 --- a/test/command/7214.md +++ b/test/command/7214.md @@ -13,12 +13,12 @@ <col style="width: 26%" /> </colgroup> <tbody> -<tr class="odd"> +<tr> <td>日本語</td> <td>の文字列</td> <td>words in english</td> </tr> -<tr class="even"> +<tr> <td>abc defghij</td> <td>def</td> <td>xyz</td> diff --git a/test/command/7713.md b/test/command/7713.md index 851cb4729..09aec8df9 100644 --- a/test/command/7713.md +++ b/test/command/7713.md @@ -11,14 +11,14 @@ <col style="width: 33%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th>aaaaaaaaaaaa</th> <th>bbbbb</th> <th>ccccccccccc</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td></td> <td></td> <td>cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc diff --git a/test/command/7847.md b/test/command/7847.md index 06fa5cc46..534d9749e 100644 --- a/test/command/7847.md +++ b/test/command/7847.md @@ -7,14 +7,14 @@ <col style="width: 20%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th>aaa</th> <th>bbb</th> <th>ccc</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Consequat nisi sit amet nibh. Nunc mi tortor, tristique sit amet, rhoncus porta, malesuada elementum, nisi.</td> <td></td> @@ -60,14 +60,14 @@ sit amet, rhoncus porta, malesuada elementum, nisi.</td> <col style="width: 20%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th>aaa</th> <th>bbb</th> <th>ccc</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Consequat nisi sit amet nibh. Nunc mi tortor, tristique sit amet, rhoncus porta, malesuada elementum, nisi.</td> <td>bbb</td> diff --git a/test/command/7871.md b/test/command/7871.md index 94670f32b..299e79cfa 100644 --- a/test/command/7871.md +++ b/test/command/7871.md @@ -6,7 +6,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> <td style="text-align: right; padding-right: 4px;">a</td> </tr> </tbody> diff --git a/test/command/7919.md b/test/command/7919.md index 5aac78fcb..2fa7f359b 100644 --- a/test/command/7919.md +++ b/test/command/7919.md @@ -7,15 +7,15 @@ item 2 | ^D <table> <thead> -<tr class="header"> +<tr> <th>single column table</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>item 1</td> </tr> -<tr class="even"> +<tr> <td>item 2</td> </tr> </tbody> @@ -31,15 +31,15 @@ item 2 | ^D <table> <thead> -<tr class="header"> +<tr> <th>single column table</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>item 1</td> </tr> -<tr class="even"> +<tr> <td>item 2</td> </tr> </tbody> @@ -66,15 +66,15 @@ item 2 | ^D <table> <thead> -<tr class="header"> +<tr> <th>single column table</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>item 1</td> </tr> -<tr class="even"> +<tr> <td>item 2</td> </tr> </tbody> @@ -90,15 +90,15 @@ item 2 | ^D <table> <thead> -<tr class="header"> +<tr> <th>single column table</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>item 1</td> </tr> -<tr class="even"> +<tr> <td>item 2</td> </tr> </tbody> diff --git a/test/command/8110.md b/test/command/8110.md index b19d9511c..e4d578e8b 100644 --- a/test/command/8110.md +++ b/test/command/8110.md @@ -18,19 +18,19 @@ ^D <table> <thead> -<tr class="header"> +<tr> <th><p>Header text</p></th> <th><p>Header text</p></th> <th><p>Header text</p></th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td><p>Example</p></td> <td><p>Example</p></td> <td><p>Example</p></td> </tr> -<tr class="even"> +<tr> <td><p>Example</p></td> <td><p>Example</p></td> <td><p>Example</p></td> diff --git a/test/command/8216.md b/test/command/8216.md index 5aeb2efea..109342cd1 100644 --- a/test/command/8216.md +++ b/test/command/8216.md @@ -18,15 +18,15 @@ Misaligned separators in grid table <col style="width: 44%" /> </colgroup> <tbody> -<tr class="odd"> +<tr> <td>Some text</td> <td><span class="class1 class2 class3">text</span></td> </tr> -<tr class="even"> +<tr> <td>Some text</td> <td><span class="class1 class2 class3">text</span></td> </tr> -<tr class="odd"> +<tr> <td>Some text</td> <td><span class="class1 class2 class3">text</span></td> </tr> diff --git a/test/command/8257.md b/test/command/8257.md index a284fd38a..d1f3b4408 100644 --- a/test/command/8257.md +++ b/test/command/8257.md @@ -16,22 +16,22 @@ <col style="width: 11%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th>Item</th> <th>Price</th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td>Eggs</td> <td>5£</td> </tr> -<tr class="even"> +<tr> <td>Spam</td> <td>3£</td> </tr> </tbody><tfoot> -<tr class="odd"> +<tr> <td>Sum</td> <td>8£</td> </tr> diff --git a/test/command/8307.md b/test/command/8307.md index d211d7003..8474051de 100644 --- a/test/command/8307.md +++ b/test/command/8307.md @@ -13,7 +13,7 @@ breaks">hello</td> ^D <table> <tbody> -<tr class="odd"> +<tr> <td title="this breaks">hello</td> diff --git a/test/command/8659.md b/test/command/8659.md index 4721e1909..5bbb6f166 100644 --- a/test/command/8659.md +++ b/test/command/8659.md @@ -5,7 +5,7 @@ ^D <table> <tbody> -<tr class="odd"> +<tr> </tr> </tbody> </table> @@ -30,20 +30,20 @@ The misaligned pipe in the first row is treated as an empty table. <col style="width: 16%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th style="text-align: left;"></th> <th></th> <th style="text-align: right;"></th> <th style="text-align: right;"><table> <tbody> -<tr class="odd"> +<tr> </tr> </tbody> </table></th> </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td style="text-align: left;">a</td> <td>b</td> <td style="text-align: right;">c</td> diff --git a/test/command/8789.md b/test/command/8789.md index 6f6daf94f..291f5082e 100644 --- a/test/command/8789.md +++ b/test/command/8789.md @@ -16,7 +16,7 @@ ^D <table> <thead> -<tr class="header"> +<tr> <th style="text-align: right;"><strong>First</strong></th> <th style="text-align: right;"><strong>Second</strong></th> <th style="text-align: left;"><strong>Third</strong></th> @@ -24,13 +24,13 @@ </tr> </thead> <tbody> -<tr class="odd"> +<tr> <td style="text-align: right;">160</td> <td style="text-align: right;">1</td> <td style="text-align: left;">test</td> <td style="text-align: left;">test</td> </tr> -<tr class="even"> +<tr> <td style="text-align: right;">160</td> <td style="text-align: right;">2</td> <td colspan="2" style="text-align: left;"><em>This is a test:</em> <span diff --git a/test/command/9002.md b/test/command/9002.md index 23915dda1..4a8e9baf9 100644 --- a/test/command/9002.md +++ b/test/command/9002.md @@ -8,7 +8,7 @@ <col style="width: 50%" /> </colgroup> <thead> -<tr class="header"> +<tr> <th>a</th> <th>b</th> </tr> |
