Tables

Tables

AsciiDoc tables are converted to Confluence tables. The following table features are supported:

Simple Table

A table without header row.

[cols="2"]
|===
| A1
| A2

| B1
| B2
|===
A1A2
B1B2

Table with Header

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 1Column 2
A1A2
B1B2

Table with Styled Text

A table with bold/italic text.

[cols="2", options="header"]
|===
| Column 1
| Column 2

| _A1_
| _A2_

| *B1*
| *B2*
|===
Column 1Column 2
A1A2
B1B2

Table with Col Span

[cols="3", options="header"]
|===
| Column 1
| Column 2
| Column 3

2+| A1 & A2
| A3

| B1
| B2
| B3
|===
Column 1Column 2Column 3
A1 & A2A3
B1B2B3

Table with Row Span

[cols="2", options="header"]
|===
| Column 1
| Column 2

.2+| A1
| A2
| A3

| B1
| B2
|===
Column 1Column 2
A1A2
A3
B1B2

Table with AsciiDoc Cell

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 1Column 2
A1
  • A2
  • A3
  • A4

Table with Width

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.

Percentage Width

[cols="2", width="100%", options="header"]
|===
| Column 1
| Column 2

| A1
| A2

| B1
| B2
|===
Column 1Column 2
A1A2
B1B2

Fixed Width

[cols="2", width="400px", options="header"]
|===
| Column 1
| Column 2

| A1
| A2

| B1
| B2
|===
Column 1Column 2
A1A2
B1B2