TXT Share

Markdown cheatsheet

Format your shared content with standard markdown. In the viewer you can toggle between raw markdown and the rendered view.

Headings

Markdown

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Rendered

Text formatting

Markdown

**Bold text**
*Italic text*
~~Strikethrough~~
**Bold and _nested italic_**
***All bold and italic***

Rendered

Lists

Markdown

Unordered list:
- Item 1
- Item 2
  - Nested item 2.1
  - Nested item 2.2
- Item 3

Ordered list:
1. First item
2. Second item
3. Third item

Rendered

Links & images

Markdown

[Link to TXT Share](/)

![Alt text for an image](https://placehold.co/150)

Rendered

Blockquotes

Markdown

> This is a blockquote
>
> It can span multiple lines

Rendered

Code

Markdown

Inline code: `const example = "code";`

Code block:
```
function helloWorld() {
  console.log("Hello, world!");
}
```

Rendered

Tables

Markdown

| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

Rendered

Math equations

Markdown

Inline math: $E = mc^2$

Block math:
$$
\int_0^\infty e^{-x^2} \, dx = \frac{\sqrt{\pi}}{2}
$$

Rendered

Horizontal rule

Markdown

Above the line

---

Below the line

Rendered