# Markdown Guide Markdown is a simple way to format text that looks great on any device. It doesn't do anything fancy like change the font size, color, or type — just the essentials, using keyboard symbols you already know. Since it is plain text, it is an easy way to author notes and documents and when needed it can be converted to a rich text HTML document. Joplin desktop and mobile applications can display both the Markdown text and the rendered rich text document. ## Cheat Sheet This is a quick summary of the Markdown syntax. | | Markdown | Rendered Output | --- | --- | --- | **Heading 1** |
# Heading 1
|

Heading 1

| **Heading 2** |
## Heading 2
|

Heading 2

| **Heading 3** |
### Heading 3
|

Heading 3

| **Bold** |
This is some `**bold text**`
| This is some bold text | **Italic** |
This is some `*italic text*`
| This is some italic text | **Blockquotes** |
> Kent.
> Where's the king?

> Gent.
> Contending with the
> fretful elements
|
Kent.
Where's the king?

Gent.
Contending with
the fretful elements
| **List** |
* Milk
* Eggs
* Beers
* Desperados
* Heineken
* Ham
| | **Ordered list** |
1. Introduction
2. Main topic
1. First sub-topic
2. Second sub-topic
3. Conclusion
|
  1. Introduction
  2. Main topic
    1. First sub-topic
    2. Second sub-topic
  3. Conclusion
| **Inline code** |
This is \`someJavaScript()\`
| This is `someJavaScript()` | **Code block** |
Here's some JavaScript code:

\`\`\`
function hello() {
alert('hello');
}
\`\`\`

Language is normally auto-detected,
but it can also be specified:

\`\`\`sql
SELECT * FROM users;
DELETE FROM sessions;
\`\`\`
| Here's some JavaScript code:

function hello() {
    alert('hello');
}

Language is normally auto-detected, but it can also be specified:

SELECT * FROM users;
DELETE FROM sessions;
| **Unformatted text** |
Indent with a tab or 4 spaces
for unformatted text.

This text will not be formatted:

Robert'); DROP TABLE students;--
| Indent with a tab or 4 spaces for unformatted text.

This text will not be formatted:

Robert'); DROP TABLE students;--
| **Link** |
This is detected as a link:

`https://joplinapp.org`

And this is a link anchoring text content:

`[Joplin](https://joplinapp.org)`

And this is a link, with a title,
anchoring text content:

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

https://joplinapp.org

And this is a link anchoring text content:

[Joplin](https://joplinapp.org)

And this is a link, with a title,
anchoring text content:

[Joplin](https://joplinapp.org "Joplin project page") (_hint: hover over the link_) | **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 table: | 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 Besides the standard Mardkown syntax, Joplin supports several additional features. ### Links to other notes You can create a link to a note by specifying its ID in the URL. For example: [Link to my note](:/0b0d62d15e60409dac34f354b6e9e839) Since getting the ID of a note is not straightforward, each app provides a way to create such link. In the **desktop app**, right click on a note an select "Copy Markdown link". In the **mobile app**, open a note and, in the top right menu, select "Copy Markdown link". You can then paste this link anywhere in another note. ### Math notation Math expressions can be added using the [KaTeX notation](https://khan.github.io/KaTeX/). To add an inline equation, wrap the expression in `$EXPRESSION$`, eg. `$\sqrt{3x-1}+(1+x)^2$`. To create an expression block, wrap it as follow: $$ EXPRESSION $$ For example: $$ f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi $$ Here is an example with the Markdown and rendered result side by side: ### Chemical equations Joplin supports chemical equations via the mhchem plugin for KaTeX. This plugin is automatically enabled if you enable math notation. See the [mhchem documentation](https://mhchem.github.io/MathJax-mhchem/) for the syntax. ### Checkboxes Checkboxes can be added like so: - [ ] Milk - [ ] Rice - [ ] Eggs The checkboxes can then be ticked in the mobile and desktop applications. ### HTML support It is generally recommended to enter the notes as Markdown as it makes the notes easier to edit. However for cases where certain features aren't supported (such as strikethrough or to highlight text), you can also use HTML code directly. For example this would be a valid note: This is strikethrough text mixed with regular **Markdown**. ### Plugins Joplin supports a number of plugins that can be toggled on top the standard Markdown features you would expect. These toggle-able plugins are listed below. Note: not all of the plugins are enabled by default, if the enable field is 'no' below, then open the option screen to enable the plugin. Plugins can be disabled in the same manner. | Plugin | Syntax | Description | Enabled | |--------|--------|-------------|---------| | Typographer | See [typographer](https://markdown-it.github.io/#md3=%7B%22source%22%3A%22%23%20Typographic%20replacements%5Cn%5Cn%28c%29%20%28C%29%20%28r%29%20%28R%29%20%28tm%29%20%28TM%29%20%28p%29%20%28P%29%20%2B-%5Cn%5Cntest..%20test...%20test.....%20test%3F.....%20test!....%5Cn%5Cn!!!!!!%20%3F%3F%3F%3F%20%2C%2C%20%20--%20---%5Cn%5Cn%5C%22Smartypants%2C%20double%20quotes%5C%22%20and%20%27single%20quotes%27%5Cn%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22html%22%7D%7D) markdown-it demo | Does typographic replacements, (c) -> © and so on | no | | [Katex](https://katex.org) | `$$math expr$$` or `$math$` | [See above](#math-notation) | yes | | [Mark](https://github.com/markdown-it/markdown-it-mark) | `==marked==` | Transforms into `marked` (highlighted) | yes | | [Footnote](https://github.com/markdown-it/markdown-it-footnote) | `Simples inline footnote ^[I'm inline!]` | See [plugin page](https://github.com/markdown-it/markdown-it-footnote) for full description | yes | | [TOC](https://github.com/nagaozen/markdown-it-toc-done-right) | Any of `${toc}, [[toc]], [toc], [[_toc_]]` | Adds a table of contents to the location of the toc page. Based on headings and sub-headings | no | | [Sub](https://github.com/markdown-it/markdown-it-sub) | `X~1~` | Transforms into X1 | no | | [Sup](https://github.com/markdown-it/markdown-it-sup) | `X^2^` | Transforms into X2 | no | | [Deflist](https://github.com/markdown-it/markdown-it-deflist) | See [pandoc](http://johnmacfarlane.net/pandoc/README.html#definition-lists) page for syntax | Adds the html `
` tag accessible through markdown | no | | [Abbr](https://github.com/markdown-it/markdown-it-abbr) | *[HTML]: Hyper Text Markup Language | Allows definition of abbreviations that can be hovered over later for a full expansion | no | | [Emoji](https://github.com/markdown-it/markdown-it-emoji) | `:smile:` | Transforms into 😄. See [this list](https://gist.github.com/rxaviers/7360908) for more emojis | 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 |