From 4cb8560d695efe81fa27d31c39e1d8ad5b904b6b Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 11 Mar 2009 20:05:01 -0400 Subject: 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. --- tests/extensions-x-tables/tables.html | 21 +++++++------------ tests/extensions-x-tables/tables.txt | 39 ++++++++++++++++++++++++++--------- 2 files changed, 36 insertions(+), 24 deletions(-) (limited to 'tests/extensions-x-tables') 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 @@ -

Before

- - - -
a b
c d
-

Another some inline markup

- - - - - - -
a b
a b
a b
a b
c d
-

After

\ No newline at end of file +

Table Tests

+
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
+
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
+
ItemValue
Computer$1600
Phone$12
Pipe$1
+
Function nameDescription
help()Display the help window.
destroy()Destroy your computer!
+
foobarbaz
Q
WW
+
foobarbaz
Q
WW
\ 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 -- cgit v1.2.3