summaryrefslogtreecommitdiff
path: root/tests/test_syntax
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2020-06-29 15:43:30 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2020-06-30 14:36:01 -0400
commit2164c4b4752b9061c742326ea0413719333058fc (patch)
tree7a27da2eb6eac66d0ccb1349e42b5975cb8d4c8a /tests/test_syntax
parent706d1fd096a49df0662a181f9dae726edefff43f (diff)
downloadpython-markdown-2164c4b4752b9061c742326ea0413719333058fc.tar.gz
Add suport for attr_lists in table headers.
Diffstat (limited to 'tests/test_syntax')
-rw-r--r--tests/test_syntax/extensions/test_attr_list.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/tests/test_syntax/extensions/test_attr_list.py b/tests/test_syntax/extensions/test_attr_list.py
index 3d65761..6baaafb 100644
--- a/tests/test_syntax/extensions/test_attr_list.py
+++ b/tests/test_syntax/extensions/test_attr_list.py
@@ -39,9 +39,10 @@ class TestAttrList(TestCase):
self.assertMarkdownRenders(
self.dedent(
"""
- | valid on td | inline | empty | missing space | not at end |
+ | A { .foo } | *B*{ .foo } | C { } | D{ .foo } | E { .foo } F |
|-------------|-------------|-------|---------------|--------------|
| a { .foo } | *b*{ .foo } | c { } | d{ .foo } | e { .foo } f |
+ | valid on td | inline | empty | missing space | not at end |
"""
),
self.dedent(
@@ -49,11 +50,11 @@ class TestAttrList(TestCase):
<table>
<thead>
<tr>
- <th>valid on td</th>
- <th>inline</th>
- <th>empty</th>
- <th>missing space</th>
- <th>not at end</th>
+ <th class="foo">A</th>
+ <th><em class="foo">B</em></th>
+ <th>C { }</th>
+ <th>D{ .foo }</th>
+ <th>E { .foo } F</th>
</tr>
</thead>
<tbody>
@@ -64,6 +65,13 @@ class TestAttrList(TestCase):
<td>d{ .foo }</td>
<td>e { .foo } f</td>
</tr>
+ <tr>
+ <td>valid on td</td>
+ <td>inline</td>
+ <td>empty</td>
+ <td>missing space</td>
+ <td>not at end</td>
+ </tr>
</tbody>
</table>
"""