diff options
author | Waylan Limberg <waylan@gmail.com> | 2009-03-11 20:05:01 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2009-03-11 20:05:01 -0400 |
commit | 4cb8560d695efe81fa27d31c39e1d8ad5b904b6b (patch) | |
tree | 47da8e62008deacc98ece046800a31dd0ef27e48 /tests/extensions-x-tables | |
parent | e21d8465ce79d998bc90b6670ea3c1070175ec73 (diff) | |
download | markdown-4cb8560d695efe81fa27d31c39e1d8ad5b904b6b.tar.gz markdown-4cb8560d695efe81fa27d31c39e1d8ad5b904b6b.tar.bz2 markdown-4cb8560d695efe81fa27d31c39e1d8ad5b904b6b.zip |
Replacement Tables extension. This one actually uses a known (PHP Extra) syntax and is implemented as a blockprocessor. Currently, Markdown doesn't see table elements as block elements, so it doesn't get prettified.
Diffstat (limited to 'tests/extensions-x-tables')
-rw-r--r-- | tests/extensions-x-tables/tables.html | 21 | ||||
-rw-r--r-- | tests/extensions-x-tables/tables.txt | 39 |
2 files changed, 36 insertions, 24 deletions
diff --git a/tests/extensions-x-tables/tables.html b/tests/extensions-x-tables/tables.html index 3377315..0549bdf 100644 --- a/tests/extensions-x-tables/tables.html +++ b/tests/extensions-x-tables/tables.html @@ -1,14 +1,7 @@ -<p>Before</p> -<table> -<tr><td> a </td><th> b </th></tr> -<tr><td> <a href="#link">c</a> </td><td> <em>d</em> </td></tr> -</table> -<p><em>Another</em> <em>some inline markup</em></p> -<table> -<tr><td> a </td><td> b </td></tr> -<tr><td> <em>a</em> </td><td> b </td></tr> -<tr><td> a </td><td> b </td></tr> -<tr><td> a </td><td> b </td></tr> -<tr><td> c </td><td> <em>d</em> </td></tr> -</table> -<p>After</p>
\ No newline at end of file +<h2>Table Tests</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>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>Function name</th><th>Description</th></tr></thead><tbody><tr><td><code>help()</code></td><td>Display the help window.</td></tr><tr><td><code>destroy()</code></td><td><strong>Destroy your computer!</strong></td></tr></tbody></table> +<table><thead><tr><th align="left">foo</th><th align="center">bar</th><th align="right">baz</th></tr></thead><tbody><tr><td align="left" /><td align="center">Q</td><td align="right" /></tr><tr><td align="left">W</td><td align="center" /><td align="right">W</td></tr></tbody></table> +<table><thead><tr><th>foo</th><th>bar</th><th>baz</th></tr></thead><tbody><tr><td /><td>Q</td><td /></tr><tr><td>W</td><td /><td>W</td></tr></tbody></table>
\ No newline at end of file diff --git a/tests/extensions-x-tables/tables.txt b/tests/extensions-x-tables/tables.txt index 60b34bd..64917ab 100644 --- a/tests/extensions-x-tables/tables.txt +++ b/tests/extensions-x-tables/tables.txt @@ -1,15 +1,34 @@ -Before +Table Tests +----------- -| a |* b *| -| [c](#link) | *d* | +First Header | Second Header +------------- | ------------- +Content Cell | Content Cell +Content Cell | Content Cell -*Another* *some inline markup* +| First Header | Second Header | +| ------------- | ------------- | +| Content Cell | Content Cell | +| Content Cell | Content Cell | -| a | b | -| _a_ | b | -| a | b | -| a | b | -| c | *d* | +| Item | Value | +| :-------- | -----:| +| Computer | $1600 | +| Phone | $12 | +| Pipe | $1 | -After +| Function name | Description | +| ------------- | ------------------------------ | +| `help()` | Display the help window. | +| `destroy()` | **Destroy your computer!** | + +|foo|bar|baz| +|:--|:-:|--:| +| | Q | | +|W | | W| + +foo|bar|baz +---|---|--- + | Q | + W | | W |