SGML

Markdown Table Examples

table0
Basic table example
table1
Table with ignored leading and trailing bar characters
table-in-listitem0
Table with ignored leading and trailing bar characters
Note: To produce HTML from the example markdown sources, copy and paste an example source, store it into a file with the ".md" file extension, and invoke
sgmlproc <your-file.md>
where <your-file.md> is replaced by the actual file used for storing.

table0

This is a basic table:

  Header   | Another Header | Yet Another Header
  ---------|----------------|-------------------
  Value 11 | Value 12       | Value 13
  Value 21 | Value 22       | Value 23
  Value 31 | Value 32       | Value 33

It is followed by a paragraph.

Rendered HTML

<p>This is a basic table:
</p><table><tr><th>Header</th><th>Another Header</th><th>Yet Another Header</th></tr><tr><td>Value 11</td><td>Value 12</td><td>Value 13</td></tr><tr><td>Value 21</td><td>Value 22</td><td>Value 23</td></tr><tr><td>Value 31</td><td>Value 32</td><td>Value 33</td></tr></table><p>It is followed by a paragraph.
</p>

table1

This is a table with leading and trailing
pipe characters.
  
| Header A | Header B | Header C |
|----------|----------|----------|
| Value A1 | Value B1 | Value C1 |
| Value A2 | Value B2 | Value C2 |
| Value A2 | Value B2 | Value C2 |

There's no difference to table0.txt in terms
of how the table is rendered to HTML.

Rendered HTML

<p>This is a table with leading and trailing
pipe characters.
</p><table><tr><th>Header A</th><th>Header B</th><th>Header C</th></tr><tr><td>Value A1</td><td>Value B1</td><td>Value C1</td></tr><tr><td>Value A2</td><td>Value B2</td><td>Value C2</td></tr><tr><td>Value A2</td><td>Value B2</td><td>Value C2</td></tr></table><p>There's no difference to table0.txt in terms
of how the table is rendered to HTML.
</p>

table-in-listitem0

- this is a table 

	supposed | to   |  be 
	---------|------|--------
	rendered | as   |
	list     | item | content

Rendered HTML

<ul><li><p>this is a table 
</p><table><tr><th>supposed</th><th>to</th><th>be</th></tr><tr><td>rendered</td><td>as</td><td></td></tr><tr><td>list</td><td>item</td><td>content</td></tr></table></li></ul>