Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions tests/fixtures/expected/blocks/nodes/tables.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,44 @@
</tbody>
</table>

<table>
<thead>
<tr>
<th>Columns separated by just 1 space</th>
<th>Another header</th>
</tr>
</thead>
<tbody>
<tr>
<td>xxx</td>
<td>yyy</td>
</tr>
<tr>
<td>xxx</td>
<td>yyy</td>
</tr>
</tbody>
</table>

<table>
<thead>
<tr>
<th>Header with a leading space</th>
<th>Another header</th>
</tr>
</thead>
<tbody>
<tr>
<td>xxx</td>
<td>yyy</td>
</tr>
<tr>
<td>xxx</td>
<td>yyy</td>
</tr>
</tbody>
</table>

<p>Simple table headless:</p>

<table>
Expand All @@ -39,6 +77,19 @@
</tbody>
</table>

<table>
<tbody>
<tr>
<td>Column with leading space</td>
<td>yyy</td>
</tr>
<tr>
<td>Another column with leading space</td>
<td>yyy</td>
</tr>
</tbody>
</table>

<p>Grid table:</p>

<table>
Expand Down
19 changes: 19 additions & 0 deletions tests/fixtures/source/blocks/nodes/tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,32 @@ Route path If the requested URL is /foo If the requested URL is /f
/foo/ It makes a 301 redirect to /foo/ It matches (200 status response)
========== ======================================== ==========================================

================================================== ==========================================
Columns separated by just 1 space Another header
================================================== ==========================================
xxx yyy
xxx yyy
================================================== ==========================================

============================ ============================================
Header with a leading space Another header
============================ ============================================
xxx yyy
xxx yyy
============================ ============================================

Simple table headless:

========== ======================================== ==========================================
/foo It matches (200 status response) It doesn't match (404 status response)
/foo/ It makes a 301 redirect to /foo/ It matches (200 status response)
========== ======================================== ==========================================

================================== ====================================
Column with leading space yyy
Another column with leading space yyy
================================== ====================================

Grid table:

+--------+------------+
Expand Down