Skip to main content

Table

rascal-0.40.13-BOOT2
rascal-tutor-0.19.9

Synopsis

Mark up for tables.

Syntax

| _Header_~1~ | _Header_~2~ | ... |
| ---- | --- | --- |
| _Entry_~11~ | _Entry_~12~ | ... |
| _Entry_~21~ | _Entry_~22~ | ... |

The "column specification", that's the line with the dashes, may also contain hints for left, right and centered aligment:

| _Header_~1~ | _Header_~2~ | ... |
| :---- | :---: | ---: |
| _Entry_~11~ | _Entry_~12~ | ... |
| _Entry_~21~ | _Entry_~22~ | ... |

Description

Tables follow the standard markdown syntax for tables.

Example 1
| A  | B  | C |
| --- | --- | --- |
| 11 | 12 | 13 |
| 21 | 22 | 23 |

gives:

ABC
111213
212223
Example 2
| A  | B  | C |
|:--- | ---:|:---:|
| 1111 | 1221 | 1331 |
| 21 | 22 | 23 |

gives (with column B centered):

ABC
111112211331
212223
Example 3
| Operator   | Description |
| --- | --- |
| `A | B` | Or operator |
| A | B | Or operator |

gives (note the escaped | character in one table entry):

OperatorDescription
`AB`
A | BOr operator

Benefits

  • Standard markdown syntax for tables

Pitfalls

  • Watch out for escaping that | character!