# Changelog The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## Removed - Disable the Markdownlint rule MD024 (`Multiple headings with the same content`). ## Fixed - Syntax errors in `.markdownlint.yaml`. - Markdownlint issues: - Heading levels should only increment by one level at a time([MD001](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md001.md)) - Hard tabs ([MD010](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md010.md)) - Reversed link syntax ([MD011](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md011.md)) - Dollar signs used before commands without showing output ([MD014](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md014.md)) - Multiple top-level headings in the same document ([MD025](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md025.md)) - Trailing punctuation in heading ([MD026](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md026.md)) - Ordered list item prefix([MD029](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md029.md)) - Emphasis used instead of a heading([MD036](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md036.md)) - Fenced code blocks should have a language specified ([MD040](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md040.md)) - Link fragments should be valid ([MD051](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md051.md)) - Link text should be descriptive ([MD059](https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md059.md)) - Prettier issues. Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/626 Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org> Co-authored-by: Javier Pérez <walpo@noreply.codeberg.org> Co-committed-by: Javier Pérez <walpo@noreply.codeberg.org>
3.6 KiB
| eleventyNavigation | ||||||||
|---|---|---|---|---|---|---|---|---|
|
Markdown files can contain tables to structure data.
Table syntax
Markdown tables are written ("drawn") using the characters pipe |, dash - and colon :.
A simple table looks like this:
| This | is | a |
| ------ | ----- | ------- |
| simple | table | example |
| This | is | a |
|---|---|---|
| simple | table | example |
The table columns do not have to align in the un-rendered text, but it improves readability to keep everything aligned in the un-rendered form as well.
Some editors automatically align the table structure.
The first line of a table forms the head of the table. It is separated from the rest of the data by a line of dashes.
| Name | Comment |
| :----- | :---------------------------------------------------------------------- |
| Alice | Always involved in various communications |
| Bob | A good guy, who likes to communicate with Alice |
| Malroy | Not so nice guy. Tries to mess with the communication of Alice and Bob. |
| Name | Comment |
|---|---|
| Alice | Always involved in various communications |
| Bob | A good guy, who likes to communicate with Alice |
| Malroy | Not so nice guy. Tries to mess with the communication of Alice and Bob. |
The line following the head may contain formatting help to the renderer.
The location of the colon : (if any) modifies how the table is rendered.
If the colon is to the left of the line of dashes separating data from the header, then the data is rendered left-aligned.
For example
| Left oriented rendering |
| :---------------------- |
| 150.0 |
| or text |
renders as
| Left oriented rendering |
|---|
| 150.0 |
| or text |
Whereas:
| Right oriented rendering |
|-------------------------:|
| 150.0 |
| or text |
is rendered as
| Right oriented rendering |
|---|
| 150.0 |
| or text |
If the rendering hint is placed on both sides of the dashed line, the data is rendered as centered:
| Centered rendering |
| :----------------: |
| 150.0 |
| or text |
Is rendered as:
| Centered rendering |
|---|
| 150.0 |
| or text |
Providing no rendering hint leaves it up to the renderer to decide how to render the data. Left-aligned is a common default.
| Un-hinted rendering |
|---------------------|
| 150.0 |
| or text |
Is rendered as:
| Un-hinted rendering |
|---|
| 150.0 |
| or text |
Table variations
Some renderers allow you to omit the delimiting pipe symbols | at the side of the table:
This | is | a
------ | ----- | ---
simple | table | example
is rendered as
| This | is | a |
|---|---|---|
| simple | table | example |
This is even considered an error by some editors.
However, for readability reasons we propose to use the delimited form within Codeberg.