help: Add a dedicated page on how to format tables.

This commit is contained in:
David Rosa 2023-03-14 21:06:04 -06:00 committed by Tim Abbott
parent 8c1e1f3f89
commit 5f8d5eeb22
5 changed files with 36 additions and 11 deletions

View File

@ -106,18 +106,9 @@ whenever you need a reminder of the formatting syntax below.
## Tables
The initial pipes (`|`) are optional if every entry in the first column is non-empty.
The header separators (`---`) must be at least three dashes long.
{!tables-intro.md!}
```
|| yes | no | maybe
|---|---|:---:|------:
| A | left-aligned | centered | right-aligned
| B | extra spaces | are | ok
| C | **bold** *italic* ~~strikethrough~~ :smile: ||
```
![Markdown table](/static/images/help/markdown-table.png)
{!tables-examples.md!}
## To-do lists

View File

@ -66,6 +66,7 @@
* [Add GIFs in your message](/help/animated-gifs-from-giphy)
* [Text emphasis](/help/text-emphasis)
* [Bulleted and numbered lists](/help/bulleted-and-numbered-lists)
* [Tables](/help/tables)
* [Code blocks](/help/code-blocks)
* [LaTeX](/help/latex)
* [Spoilers](/help/spoilers)

View File

@ -0,0 +1,19 @@
### What you type
```
|| yes | no | maybe
|---|---|:---:|------:
| A | left-aligned | centered | right-aligned
| B | extra spaces | are | ok
| C | **bold** *italic* ~~strikethrough~~ :smile: ||
```
!!! tip ""
The initial pipes (`|`) are optional if every entry in the first column is
non-empty.
The header separators (`---`) must be at least three dashes long.
### What it looks like
![Markdown table](/static/images/help/markdown-table.png)

View File

@ -0,0 +1 @@
Zulip supports Markdown formatting for tables.

13
help/tables.md Normal file
View File

@ -0,0 +1,13 @@
# Tables
{!tables-intro.md!}
## Examples
{!tables-examples.md!}
## Related articles
* [Message formatting](/help/format-your-message-using-markdown)
* [Preview messages before sending](/help/preview-your-message-before-sending)
* [Resize the compose box](/help/resize-the-compose-box)