123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <h2>Tables</h2>
- <table>
- <thead>
- <tr><th>First Header</th><th>Second Header</th></tr>
- </thead>
- <tbody>
- <tr><td>Content Cell</td><td>Content Cell</td></tr>
- <tr><td>Content Cell</td><td>Content Cell</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>First Header</th><th>Second Header</th></tr>
- </thead>
- <tbody>
- <tr><td>Content Cell</td><td>Content Cell</td></tr>
- <tr><td>Content Cell</td><td>Content Cell</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Name</th><th>Description</th></tr>
- </thead>
- <tbody>
- <tr><td>Help</td><td>Display the help window.</td></tr>
- <tr><td>Close</td><td>Closes a window</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Name</th><th>Description</th></tr>
- </thead>
- <tbody>
- <tr><td>Help</td><td><strong>Display the</strong> help window.</td></tr>
- <tr><td>Close</td><td><em>Closes</em> a window</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Default-Align</th><th align="left">Left-Aligned</th><th align="center">Center Aligned</th><th align="right">Right Aligned</th></tr>
- </thead>
- <tbody>
- <tr><td>1</td><td align="left">col 3 is</td><td align="center">some wordy text</td><td align="right">$1600</td></tr>
- <tr><td>2</td><td align="left">col 2 is</td><td align="center">centered</td><td align="right">$12</td></tr>
- <tr><td>3</td><td align="left">zebra stripes</td><td align="center">are neat</td><td align="right">$1</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Simple</th><th>Table</th></tr>
- </thead>
- <tbody>
- <tr><td>1</td><td>2</td></tr>
- <tr><td>3</td><td>4</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Simple</th><th>Table</th></tr>
- </thead>
- <tbody>
- <tr><td>1</td><td>2</td></tr>
- <tr><td>3</td><td>4</td></tr>
- <tr><td>3</td><td>4 |</td></tr>
- <tr><td>3</td><td>4 \</td></tr>
- </tbody>
- </table>
- <p>Check https://github.com/erusev/parsedown/issues/184 for the following:</p>
- <table>
- <thead>
- <tr><th>Foo</th><th>Bar</th><th>State</th></tr>
- </thead>
- <tbody>
- <tr><td><code>Code | Pipe</code></td><td>Broken</td><td>Blank</td></tr>
- <tr><td><code>Escaped Code \| Pipe</code></td><td>Broken</td><td>Blank</td></tr>
- <tr><td>Escaped | Pipe</td><td>Broken</td><td>Blank</td></tr>
- <tr><td>Escaped \</td><td>Pipe</td><td>Broken</td><td>Blank</td></tr>
- <tr><td>Escaped \</td><td>Pipe</td><td>Broken</td><td>Blank</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th align="left">Simple</th><th>Table</th></tr>
- </thead>
- <tbody>
- <tr><td align="left">3</td><td>4</td></tr>
- <tr><td align="left">3</td><td>4</td></tr>
- <tr><td align="left">5</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Mixed</th><th>Table</th></tr>
- </thead>
- <tbody>
- <tr><td>1</td><td>2</td></tr>
- <tr><td>3</td><td>4</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Mixed</th><th>Table</th></tr>
- </thead>
- <tbody>
- <tr><td>1</td><td>2</td></tr>
- <tr><td>3</td><td>4</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Mixed</th><th>Table</th></tr>
- </thead>
- <tbody>
- <tr><td>1</td><td>2</td></tr>
- <tr><td>3</td><td>4</td></tr>
- </tbody>
- </table>
- <p>some text</p>
- <table>
- <thead>
- <tr><th>single col</th></tr>
- </thead>
- <tbody>
- <tr><td>1</td></tr>
- <tr><td>2</td></tr>
- <tr><td>3</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Table</th><th>With</th><th>Empty</th><th>Cells</th></tr>
- </thead>
- <tbody>
- <tr><td></td><td></td><td></td><td></td></tr>
- <tr><td>a</td><td></td><td>b</td><td></td></tr>
- <tr><td></td><td>a</td><td></td><td>b</td></tr>
- <tr><td>a</td><td></td><td></td><td>b</td></tr>
- <tr><td></td><td>a</td><td>b</td><td></td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th></th></tr>
- </thead>
- <tbody>
- <tr><td></td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th></th><th></th></tr>
- </thead>
- <tbody>
- <tr><td></td><td></td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Table</th><th>Indentation</th></tr>
- </thead>
- <tbody>
- <tr><td>A</td><td>B</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Table</th><th>Indentation</th></tr>
- </thead>
- <tbody>
- <tr><td>A</td><td>B</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th>Table</th><th>Indentation</th></tr>
- </thead>
- <tbody>
- <tr><td>A</td><td>B</td></tr>
- </tbody>
- </table>
- <pre><code>| Table | Indentation |
- </code></pre>
- <p> | ----- | ---- |
- | A | B |</p>
- <table>
- <thead>
- <tr><th align="left">Table</th><th>Indentation</th></tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- <pre><code>| A | B |
- </code></pre>
- <table>
- <thead>
- <tr><th>Item</th><th align="right">Value</th></tr>
- </thead>
- <tbody>
- <tr><td>Computer</td><td align="right">$1600</td></tr>
- <tr><td>Phone</td><td align="right">$12</td></tr>
- <tr><td>Pipe</td><td align="right">$1</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th align="center">a</th><th align="center">b</th><th align="center">c</th></tr>
- </thead>
- <tbody>
- <tr><td align="center">1</td><td align="center">2</td><td align="center">3</td></tr>
- </tbody>
- </table>
- <table>
- <thead>
- <tr><th align="left">a</th><th align="center">b</th><th align="left">c</th><th align="center">d</th></tr>
- </thead>
- <tbody>
- <tr><td align="left">1</td><td align="center">2</td><td align="left">3</td><td align="center">4</td></tr>
- </tbody>
- </table>
|