From 7230cdea336777b932a0b27082ca3a0fd30c4da9 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 4 Oct 2019 09:13:24 +0100 Subject: [PATCH] Doc: Added table example to Markdown cheatsheet --- readme/markdown.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/readme/markdown.md b/readme/markdown.md index 54cc53e653..5ccb27fd77 100644 --- a/readme/markdown.md +++ b/readme/markdown.md @@ -24,6 +24,39 @@ This is a quick summary of the Markdown syntax. | **Link** |
This is detected as a link:

`https://joplinapp.org`

And this is a link with a title:

`[Joplin](https://joplinapp.org)`
| This is detected as a link:

https://joplinapp.org

And this is a link with a title:

[Joplin](https://joplinapp.org) | **Images** |
`![Joplin icon](https://git.io/JenGk)`
| ![Here's Joplin icon](https://git.io/JenGk) | **Horizontal Rule** |
One rule:
\*\*\*
Another rule:
\-\-\-
| One rule:

Another rule:

+| **Tables** | [See below](#tables) | + +### Tables + +Tables are created using pipes `|` and and hyphens `-`. This is a Markdown tables: + + | First Header | Second Header | + | ------------- | ------------- | + | Content Cell | Content Cell | + | Content Cell | Content Cell | + +Which is rendered as: + +| First Header | Second Header | +| ------------- | ------------- | +| Content Cell | Content Cell | +| Content Cell | Content Cell | + +Note that there must be at least 3 dashes separating each header cell. + +Colons can be used to align columns: + + | Tables | Are | Cool | + | ------------- |:-------------:| -----:| + | col 3 is | right-aligned | $1600 | + | col 2 is | centered | $12 | + +Which is rendered as: + +| Tables | Are | Cool | +| ------------- |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | ## Joplin Extras @@ -90,4 +123,4 @@ Joplin supports a number of plugins that can be toggled on top the standard Mark | [Emoji](https://github.com/markdown-it/markdown-it-emoji) | `:smile:` :smile: | See [this list](https://gist.github.com/rxaviers/7360908) for more emoji | no | | [Insert](https://github.com/markdown-it/markdown-it-ins) | `++inserted++` | Transforms into `inserted` (inserted) | no | | [Multitable](https://github.com/RedBug312/markdown-it-multimd-table) | See [MultiMarkdown](https://fletcher.github.io/MultiMarkdown-6/syntax/tables.html) page | Adds more power and customization to markdown tables | no | -| [Fountain](https://fountain.io) | \`\`\`fountain
Your screenplay...
\`\`\` | Adds support for the Fountain markup language, a plain text markup language for screenwriting | no | \ No newline at end of file +| [Fountain](https://fountain.io) | \`\`\`fountain
Your screenplay...
\`\`\` | Adds support for the Fountain markup language, a plain text markup language for screenwriting | no |