SimpleWiki

Tables

Tables are a simple way to organize structured information in your documentation.

SimpleWiki supports standard Markdown tables with alignment options and additional features from Nuxt Content.


Basic Tables

A table consists of columns separated by | characters.

Example:

| Feature  | Description                |
| :------- | :------------------------- |
| Markdown | Write documentation        |
| MDC      | Add interactive components |

Result:

FeatureDescription
MarkdownWrite documentation
MDCAdd interactive components

Column Alignment

You can control the alignment of columns using : in the separator row.

Left Alignment

| Feature  | Description          |
| :------- | :------------------- |
| Markdown | Documentation format |

Result:

FeatureDescription
MarkdownDocumentation format

Center Alignment

|  Feature |      Description     |
| :------: | :------------------: |
| Markdown | Documentation format |

Result:

FeatureDescription
MarkdownDocumentation format

Right Alignment

|    Feature | Version |
| ---------: | ------: |
| SimpleWiki |     1.0 |

Result:

FeatureVersion
SimpleWiki1.0

Complex Tables

Tables can contain:

  • Links
  • Inline code
  • Bold text
  • Other Markdown formatting

Example:

| Component | Installation        | Required |
| :-------- | :------------------ | :------- |
| MongoDB   | [Guide](#)          | Yes      |
| Redis     | `apt install redis` | No       |

Result:

ComponentInstallationRequired
MongoDBGuideYes
Redisapt install redisNo

Table IDs

Tables can be assigned IDs for referencing.

Example:

| Component | Required |
| :-------- | :------- |
| MongoDB   | Yes      |
| Redis     | No       |

{#database-components}

The ID can be used to reference the table from other parts of your documentation.