$ cat csvtables.md | gsed "s#^# #"
# Simple Tables
```` {.table caption="Does this result in a `simple_table`?" type="simple" aligns="RCRLCRC" header="yes"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
```` {.table caption="Does this result in a `simple_table`?" type="simple" aligns="RCRLCRC" header="no"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
# Grid Tables
```` {.table caption="Does this result in a `grid_table`?" type="grid" aligns="RCRLCRC" header="yes"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
```` {.table caption="Does this result in a `grid_table`?" type="grid" aligns="RCRLCRC" header="no"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
# Pipe Tables
```` {.table caption="Does this result in a `pipe_table`?" type="pipe" aligns="RCRLCRC" header="yes"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
```` {.table caption="Does this result in a `pipe_table`?" type="pipe" aligns="RCRLCRC" header="no"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
# Multiline Tables
```` {.table caption="Does this result in a `multiline_table`?" type="multiline" aligns="RCRLCRC" header="yes"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
```` {.table caption="Does this result in a `multiline_table`?" type="multiline" aligns="RCRLCRC" header="no"}
**Fruit(R)**, *Quantity(C)*, ***Price(R)***, **`Origin`(L)**, `Quality`(C), packed(R), sold-out?(C)
apples, 15,"3,24", Spain, excellent, ***yes***, yes
oranges, 12,"2,22", Germany, **sour**, no, soon
````
Simple Tables
=============
**Fruit(R)** *Quantity(C)* ***Price(R)*** **`Origin`(L)** `Quality`(C) packed(R) sold-out?(C)
-------------- --------------- ---------------- ----------------- -------------- ----------- --------------
apples 15 3,24 Spain excellent ***yes*** yes
oranges 12 2,22 Germany **sour** no soon
: Does this result in a `simple_table`?
-------------- --------------- ---------------- ----------------- -------------- ----------- --------------
**Fruit(R)** *Quantity(C)* ***Price(R)*** **`Origin`(L)** `Quality`(C) packed(R) sold-out?(C)
apples 15 3,24 Spain excellent ***yes*** yes
oranges 12 2,22 Germany **sour** no soon
-------------- --------------- ---------------- ----------------- -------------- ----------- --------------
: Does this result in a `simple_table`?
Grid Tables
===========
+-----------+------------+-------------+-------------+------------+----------+------------+
| **Fruit(R | *Quantity( | ***Price(R) | **`Origin`( | `Quality`( | packed(R | sold-out?( |
| )** | C)* | *** | L)** | C) | ) | C) |
+===========+============+=============+=============+============+==========+============+
| apples | 15 | 3,24 | Spain | excellent | ***yes** | yes |
| | | | | | * | |
+-----------+------------+-------------+-------------+------------+----------+------------+
| oranges | 12 | 2,22 | Germany | **sour** | no | soon |
+-----------+------------+-------------+-------------+------------+----------+------------+
: Does this result in a `grid_table`?
+-----------+------------+-------------+-------------+------------+----------+------------+
| **Fruit(R | *Quantity( | ***Price(R) | **`Origin`( | `Quality`( | packed(R | sold-out?( |
| )** | C)* | *** | L)** | C) | ) | C) |
+-----------+------------+-------------+-------------+------------+----------+------------+
| apples | 15 | 3,24 | Spain | excellent | ***yes** | yes |
| | | | | | * | |
+-----------+------------+-------------+-------------+------------+----------+------------+
| oranges | 12 | 2,22 | Germany | **sour** | no | soon |
+-----------+------------+-------------+-------------+------------+----------+------------+
: Does this result in a `grid_table`?
Pipe Tables
===========
**Fruit(R)** *Quantity(C)* ***Price(R)*** **`Origin`(L)** `Quality`(C) packed(R) sold-out?(C)
-------------- --------------- ---------------- ----------------- -------------- ----------- --------------
apples 15 3,24 Spain excellent ***yes*** yes
oranges 12 2,22 Germany **sour** no soon
: Does this result in a `pipe_table`?
|---------------:|:----------------:|------------------:|:-------------------|:---------------:|-------------:|:---------------:|
| **Fruit(R)** | *Quantity(C)* | ***Price(R)*** | **`Origin`(L)** |
`Quality`(C) | packed(R) | sold-out?(C) | | apples | 15 | 3,24 | Spain |
excellent | ***yes*** | yes | | oranges | 12 | 2,22 | Germany | **sour**
| no | soon |
Table: Does this result in a `pipe_table`?
Multiline Tables
================
---------------------------------------------------------------------------
**Fruit(R *Quantity( ***Price(R) **`Origin`(L `Quality`( packed(R sold-out?
)** C)* *** )** C) ) (C)
--------- ---------- ----------- ------------ ---------- -------- ---------
apples 15 3,24 Spain excellent ***yes** yes
*
oranges 12 2,22 Germany **sour** no soon
---------------------------------------------------------------------------
: Does this result in a `multiline_table`?
--------- ---------- ----------- ------------ ---------- -------- ---------
**Fruit(R *Quantity( ***Price(R) **`Origin`(L `Quality`( packed(R sold-out?
)** C)* *** )** C) ) (C)
apples 15 3,24 Spain excellent ***yes** yes
*
oranges 12 2,22 Germany **sour** no soon
--------- ---------- ----------- ------------ ---------- -------- ---------
: Does this result in a `multiline_table`?
But this is not required, since the longest line of the Markdown output {the b0rken pipe_table
separator line (for header="no"
) with the colons} is using 130 characters, while the grid_table
is using only 92.
Grid Tables
===========
+----------------+------------------+-------------------+--------------------+-----------------+--------------+-----------------+
| **Fruit(R)** | *Quantity(C)* | ***Price(R)*** | **`Origin`(L)** | `Quality`(C) | packed(R) | sold-out?(C) |
+================+==================+===================+====================+=================+==============+=================+
| apples | 15 | 3,24 | Spain | excellent | ***yes*** | yes |
+----------------+------------------+-------------------+--------------------+-----------------+--------------+-----------------+
| oranges | 12 | 2,22 | Germany | **sour** | no | soon |
+----------------+------------------+-------------------+--------------------+-----------------+--------------+-----------------+
: Does this result in a `grid_table`?
+----------------+------------------+-------------------+--------------------+-----------------+--------------+-----------------+
| **Fruit(R)** | *Quantity(C)* | ***Price(R)*** | **`Origin`(L)** | `Quality`(C) | packed(R) | sold-out?(C) |
+----------------+------------------+-------------------+--------------------+-----------------+--------------+-----------------+
| apples | 15 | 3,24 | Spain | excellent | ***yes*** | yes |
+----------------+------------------+-------------------+--------------------+-----------------+--------------+-----------------+
| oranges | 12 | 2,22 | Germany | **sour** | no | soon |
+----------------+------------------+-------------------+--------------------+-----------------+--------------+-----------------+
: Does this result in a `grid_table`?
[....]
Multiline Tables
================
**Fruit(R)** *Quantity(C)* ***Price(R)*** **`Origin`(L)** `Quality`(C) packed(R) sold-out?(C)
-------------- ---------------- ----------------- ------------------ --------------- ------------ --------------
apples 15 3,24 Spain excellent ***yes*** yes
oranges 12 2,22 Germany **sour** no soon
: Does this result in a `multiline_table`?
-------------- ---------------- ----------------- ------------------ --------------- ------------ --------------
**Fruit(R)** *Quantity(C)* ***Price(R)*** **`Origin`(L)** `Quality`(C) packed(R) sold-out?(C)
apples 15 3,24 Spain excellent ***yes*** yes
oranges 12 2,22 Germany **sour** no soon
-------------- ---------------- ----------------- ------------------ --------------- ------------ --------------
: Does this result in a `multiline_table`?