blog/_posts/2017-12-15-table-example.md
2019-12-05 19:12:30 +08:00

2.5 KiB

layout title subtitle categories tags
post Table example example
table

Table example as below

For now, these extended features are provided:

  • Cells spanning multiple columns
  • Cells spanning multiple rows
  • Cells text align separately
  • Table header not required
  • Grouped table header rows or data rows

Rowspan and Colspan

^^ in a cell indicates it should be merged with the cell above.
This feature is contributed by pmccloghrylaing.

Stage Direct Products ATP Yields
Glycolysis 2 ATP
^^ 2 NADH 3--5 ATP
Pyruvaye oxidation 2 NADH 5 ATP
Citric acid cycle 2 ATP
^^ 6 NADH 15 ATP
^^ 2 FADH 3 ATP
30--32 ATP

[ Net ATP yields per hexose]

Multiline

A backslash at end to join cell contents with the following lines.
This feature is contributed by Lucas-C.

: Easy Multiline :
Apple Banana Orange \
Apple Banana Orange \
Apple Banana Orange
Apple Banana Orange \
Apple Banana Orange
Apple Banana Orange

Headerless

Table header can be eliminated.

|--|--|--|--|--|--|--|--| |♜ | |♝ |♛ |♚ |♝ |♞ |♜ | | |♟ |♟ |♟ | |♟ |♟ |♟ | |♟ | |♞ | | | | | | | |♗ | | |♟ | | | | | | | | |♙ | | | | | | | | | |♘ | | | |♙ |♙ |♙ |♙ | |♙ |♙ |♙ | |♖ |♘ |♗ |♕ |♔ | | |♖ |

Text Alignment

Table cell can be set alignment separately.

:Fruits Food:
Apple Banana Orange
Apple Banana Orange
Fruits::
Apple Banana Orange
Apple Banana Orange
: :Fruits : : Food :
Apple Banana Orange : Strawberry :
Apple Banana Orange Peach :
: Fruits || Food :
Apple : Apple : Apple \
Banana Banana Banana \
Orange Orange Orange
: Rowspan is 4 : How's it?
^^ A. Peach 1. Fine :
^^ B. Orange ^^ 2. Bad
^^ C. Banana It's OK!