You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.1KB

  1. <h2>Tables</h2>
  2. <table>
  3. <thead>
  4. <tr><th>First Header </th><th>Second Header</th></tr>
  5. </thead>
  6. <tbody>
  7. <tr><td>Content Cell </td><td>Content Cell</td></tr>
  8. <tr><td>Content Cell </td><td>Content Cell</td></tr>
  9. </tbody>
  10. </table>
  11. <table>
  12. <thead>
  13. <tr><th>First Header </th><th>Second Header</th></tr>
  14. </thead>
  15. <tbody>
  16. <tr><td>Content Cell </td><td>Content Cell</td></tr>
  17. <tr><td>Content Cell </td><td>Content Cell</td></tr>
  18. </tbody>
  19. </table>
  20. <table>
  21. <thead>
  22. <tr><th>Name </th><th>Description</th></tr>
  23. </thead>
  24. <tbody>
  25. <tr><td>Help </td><td>Display the help window.</td></tr>
  26. <tr><td>Close </td><td>Closes a window</td></tr>
  27. </tbody>
  28. </table>
  29. <table>
  30. <thead>
  31. <tr><th>Name </th><th>Description</th></tr>
  32. </thead>
  33. <tbody>
  34. <tr><td>Help </td><td><strong>Display the</strong> help window.</td></tr>
  35. <tr><td>Close </td><td><em>Closes</em> a window</td></tr>
  36. </tbody>
  37. </table>
  38. <table>
  39. <thead>
  40. <tr><th align="left">Left-Aligned </th><th align="center">Center Aligned </th><th align="right">Right Aligned</th></tr>
  41. </thead>
  42. <tbody>
  43. <tr><td align="left">col 3 is </td><td align="center">some wordy text </td><td align="right">$1600</td></tr>
  44. <tr><td align="left">col 2 is </td><td align="center">centered </td><td align="right"> $12</td></tr>
  45. <tr><td align="left">zebra stripes </td><td align="center">are neat </td><td align="right"> $1</td></tr>
  46. </tbody>
  47. </table>
  48. <table>
  49. <thead>
  50. <tr><th>Simple </th><th>Table</th></tr>
  51. </thead>
  52. <tbody>
  53. <tr><td>1 </td><td>2</td></tr>
  54. <tr><td>3 </td><td>4</td></tr>
  55. </tbody>
  56. </table>
  57. <table>
  58. <thead>
  59. <tr><th>Simple </th><th>Table</th></tr>
  60. </thead>
  61. <tbody>
  62. <tr><td>1 </td><td>2</td></tr>
  63. <tr><td>3 </td><td>4</td></tr>
  64. <tr><td>3 </td><td>4 |</td></tr>
  65. <tr><td>3 </td><td>4 \</td></tr>
  66. </tbody>
  67. </table>
  68. <p>Check <a href="https://github.com/erusev/parsedown/issues/184">https://github.com/erusev/parsedown/issues/184</a> for the following:</p>
  69. <table>
  70. <thead>
  71. <tr><th>Foo </th><th>Bar </th><th>State</th></tr>
  72. </thead>
  73. <tbody>
  74. <tr><td><code>Code | Pipe</code> </td><td>Broken </td><td>Blank</td></tr>
  75. <tr><td><code>Escaped Code \| Pipe</code> </td><td>Broken </td><td>Blank</td></tr>
  76. <tr><td>Escaped | Pipe </td><td>Broken </td><td>Blank</td></tr>
  77. <tr><td>Escaped \</td><td>Pipe </td><td>Broken </td><td>Blank</td></tr>
  78. <tr><td>Escaped \ </td><td>Pipe </td><td>Broken </td><td>Blank</td></tr>
  79. </tbody>
  80. </table>
  81. <table>
  82. <thead>
  83. <tr><th align="left">Simple </th><th>Table</th></tr>
  84. </thead>
  85. <tbody>
  86. <tr><td align="left">3 </td><td>4</td></tr>
  87. </tbody>
  88. </table>
  89. <p>3 | 4</p>
  90. <table>
  91. <thead>
  92. <tr><th>Table </th><th>With </th><th>Empty </th><th>Cells</th></tr>
  93. </thead>
  94. <tbody>
  95. <tr><td></td><td> </td><td> </td><td></td></tr>
  96. <tr><td>a </td><td> </td><td> b </td><td></td></tr>
  97. <tr><td></td><td> a </td><td> </td><td> b</td></tr>
  98. <tr><td>a </td><td> </td><td> </td><td> b</td></tr>
  99. <tr><td></td><td> a </td><td> b </td><td></td></tr>
  100. </tbody>
  101. </table>
  102. <table>
  103. <thead>
  104. <tr><th></th></tr>
  105. </thead>
  106. <tbody>
  107. <tr><td></td></tr>
  108. </tbody>
  109. </table>
  110. <table>
  111. <thead>
  112. <tr><th></th><th></th></tr>
  113. </thead>
  114. <tbody>
  115. <tr><td></td><td></td></tr>
  116. </tbody>
  117. </table>