Tables
AsciiDoc tables are converted to Confluence tables. The following table features are supported:
A table without header row.
[cols="2"]
|===
| A1
| A2
| B1
| B2
|===A1 | A2 |
B1 | B2 |
A table with first row as header.
Currently, only column headers, are supported, but row headers not.
[cols="2", options="header"]
|===
| Column 1
| Column 2
| A1
| A2
| B1
| B2
|===Column 1 | Column 2 |
|---|---|
A1 | A2 |
B1 | B2 |
A table with bold/italic text.
[cols="2", options="header"]
|===
| Column 1
| Column 2
| _A1_
| _A2_
| *B1*
| *B2*
|===Column 1 | Column 2 |
|---|---|
A1 | A2 |
B1 | B2 |
[cols="3", options="header"]
|===
| Column 1
| Column 2
| Column 3
2+| A1 & A2
| A3
| B1
| B2
| B3
|===Column 1 | Column 2 | Column 3 |
|---|---|---|
A1 & A2 | A3 | |
B1 | B2 | B3 |
[cols="2", options="header"]
|===
| Column 1
| Column 2
.2+| A1
| A2
| A3
| B1
| B2
|===Column 1 | Column 2 |
|---|---|
A1 | A2 |
A3 | |
B1 | B2 |
Table cells may also contain structured content, e.g. bullet lists:
[cols="2", options="header"]
|===
| Column 1
| Column 2
|A1
a|
* A2
* A3
* A4
|===Column 1 | Column 2 |
|---|---|
A1 |
|
Tables can be configured with a specific width using the width attribute. This allows to control the horizontal space the table occupies.
Table width values are not honoured explicitly by the new Confluence editor. Table width values are mapped to the default, wide or full-width table layout based on internal Confluence editor logic.
[cols="2", width="100%", options="header"]
|===
| Column 1
| Column 2
| A1
| A2
| B1
| B2
|===Column 1 | Column 2 |
|---|---|
A1 | A2 |
B1 | B2 |
[cols="2", width="400px", options="header"]
|===
| Column 1
| Column 2
| A1
| A2
| B1
| B2
|===Column 1 | Column 2 |
|---|---|
A1 | A2 |
B1 | B2 |