Normal markdown tables look a bit boring:
| Id | Name | Age |
| --- | --- | --- |
| 1 | Alice | 42 |
| 2 | Bob | 69 |
| 3 | Charlie | 1 |
Resulting in:
| Id | Name | Age |
|---|---|---|
| 1 | Alice | 42 |
| 2 | Bob | 69 |
| 3 | Charlie | 1 |
Bootstrap tables
Bootstrap tables are embedded inside a shortcode: {{< table >}} and {{</ table >}}.
Here is an example with the corresponding output:
{{< table striped hover >}}
| Id | Name | Age |
| --- | --- | --- |
| 1 | Alice | 42 |
| 2 | Bob | 69 |
| 3 | Charlie | 1 |
{{</ table >}}
| Id | Name | Age |
|---|---|---|
| 1 | Alice | 42 |
| 2 | Bob | 69 |
| 3 | Charlie | 1 |
As you can see, the table block can take additional arguments. The following optional arguments are supported:
- colorscheme:
primarysecondarysuccessdangerwarninginfolightdark
hover: highlights the rows when hovering over them- stripes:
striped: horizontal stripes (rows)striped_columnsvertical stripes (columns)
small: Make the table smallerdivider: the divider between the title bar and the bodyresponsive: If the table should be scrollable vertically- borders
bordered: Adds outline borders to the tableborderless: Removes all cell borders
For more information about bootstrap tables, please visit their documentation