summaryrefslogtreecommitdiff
path: root/_posts/2017-12-15-table-example.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2017-12-15-table-example.md')
-rw-r--r--_posts/2017-12-15-table-example.md38
1 files changed, 29 insertions, 9 deletions
diff --git a/_posts/2017-12-15-table-example.md b/_posts/2017-12-15-table-example.md
index 0ab5df7..af03411 100644
--- a/_posts/2017-12-15-table-example.md
+++ b/_posts/2017-12-15-table-example.md
@@ -16,7 +16,6 @@ tags: [table]
* 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](https://github.com/pmccloghrylaing).
@@ -26,7 +25,7 @@ This feature is contributed by [pmccloghrylaing](https://github.com/pmccloghryla
|Glycolysis | 2 ATP ||
|^^ | 2 NADH | 3--5 ATP |
|Pyruvaye oxidation | 2 NADH | 5 ATP |
-|Citric acid cycle | 2 ATP | |
+|Citric acid cycle | 2 ATP ||
|^^ | 6 NADH | 15 ATP |
|^^ | 2 FADH | 3 ATP |
| 30--32 ATP |||
@@ -61,31 +60,52 @@ Table header can be eliminated.
|♖ |♘ |♗ |♕ |♔ | | |♖ |
+```markdown
+|: Fruits \|\| Food :|||
+|:-------- |:-------- |:------------ |
+| Apple |: Apple :| Apple \
+| Banana | Banana | Banana \
+| Orange | Orange | Orange |
+|: Rowspan is 5 :||: How's it? :|
+|^^ A. Peach ||^^ 1. Fine |
+|^^ B. Orange ||^^ 2. Bad $I = \int \rho R^{2} dV$ |
+|^^ C. Banana || It's OK! ![example image][my-image] |
+```
+
### Text Alignment
Table cell can be set alignment separately.
-| \:Fruits || Food: |
+| \:Fruits || Food :|
|:-------- |:------ |:-------- |
| Apple | Banana | Orange |
| Apple | Banana | Orange |
-| | Fruits\:: ||
+| | Fruits\:: ||
|:-------- |:------ |:-------- |
| Apple | Banana | Orange |
| Apple | Banana | Orange |
+
|: \:Fruits :|| |: Food :||
|:-------- |:------ |:-------- |:-------- |:------ |
| Apple | Banana | Orange |: Strawberry :|
-| Apple | Banana | Orange | Peach :| |
+| Apple & Banana || ^^ | Peach :||
+
+
+|: \:Fruits :|| |: Food :||
+| Apple | Banana | Orange |: Strawberry :|
+
|: 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! |
+|: Rowspan is 5 :||: How's it? :|
+|^^ A. Peach ||^^ 1. Fine |
+|^^ B. Orange ||^^ 2. Bad $I = \int \rho R^{2} dV$ |
+|^^ C. Banana || It's OK! ![example image][my-image] |
+
+[my-image]: http://www.unexpected-vortices.com/sw/rippledoc/example-image.jpg "An exemplary image"
+