# Markdown Cheat Sheet

Quick reference for every Markdown flavor yeet.md renders. Interactive
previews at <https://yeet.md/cheat-sheet>.

## Formatting

**Headers:**

```
# Heading 1
## Heading 2
### Heading 3
```

**Emphasis:** `**bold** and *italic* and ~~strikethrough~~`

**Footnotes:**

```
Check this claim[^1] for details.

[^1]: This is the footnote body.
```

**Blockquotes:**

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

## Lists

**Unordered Lists:**

```
- First item
- Second item
  - Nested item
- Third item
```

**Ordered Lists:**

```
1. First
2. Second
3. Third
```

**Task Lists:**

```
- [x] Completed task
- [ ] Pending task
- [ ] Another task
```

## Links & Media

**Links:**

```
[Link text](https://example.com)

![Alt text](https://picsum.photos/200/100)
```

## Code

**Inline Code:** `Use `backticks` for inline code`

**Code Blocks:**

````
```javascript
function hello() {
  return "world";
}
```
````

## Tables

**Tables:**

```
| Name | Role |
|------|------|
| Alice | Dev |
| Bob | Design |
```

## Obsidian

**Wikilinks:** `Link to another note with [[My Note]], or set custom text with [[My Note|display text]].`

**Embeds:** `Embed an image or file with ![[diagram.png]] or ![[report.pdf]].`

**Highlights:** `This is ==highlighted text== in a sentence.`

**Comments:**

```
Inline %%author-only note%% that stays faded in preview.

%%
Block comments work too — multi-line notes for yourself.
%%
```

**Note Callout:**

```
> [!note]
> Important information that users should know.
```

**Tip Callout:**

```
> [!tip]
> Helpful advice to make things easier.
```

**Warning Callout:**

```
> [!warning]
> Something to be careful about.
```

**Custom Title Callout:**

```
> [!note] Custom Title
> Callouts can have custom titles.
```

**Collapsible Callout:**

```
> [!tip]+ Click to collapse
> This callout starts expanded.
> Click the title to toggle.
```

**YouTube Embed:** `![Video](https://www.youtube.com/watch?v=MnXoikTajfI)`

**X/Twitter Embed:** `![Post by @davidvkimball](https://x.com/davidvkimball/status/1933196479801536736)`

**Media Placeholders:**

```
![A diagram](diagram.png)

![My video](recording.mp4)

![Podcast episode](episode.mp3)

![Report](document.pdf)
```

**Frontmatter:**

```
---
title: My Note
author: Dana Kim
published: 2026-01-15
tags:
  - research
  - notes
---

Content starts below the card.
```

## Discord

**Subtext:** `-# Small muted caption text under a message`

**Underline:** `Regular word and __an underlined word__ in a sentence.`

**Spoiler:** `The answer is ||42 — click to reveal||.`

**User mention:** `Heads up <@123456789012345678> — check the new thread.`

**Role mention:** `Calling all <@&987654321098765432> members.`

**Channel mention:** `Post updates in <#111222333444555666>.`

**Slash command:** `Run </ping:123456789012345678> to check latency.`

**Guild navigation:** `Open <id:customize> to pick your roles.`

**Timestamp (short date/time):** `Event starts <t:1783049314> — see you there.`

**Timestamp (relative):** `Starting <t:1783049314:R>.`

**Timestamp (long date):** `The deadline is <t:1783049314:D>.`

**Emoji shortcode:** `Nice work :tada: — happy :wink: to see it.`

## KaTeX

**Inline Math:** `Euler's identity: $e^{i\pi} + 1 = 0$`

**Display Math:** `$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$`

**Greek Letters:** `$\alpha, \beta, \gamma, \delta, \theta, \pi, \omega$`

**Fractions & Sums:** `$$\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$$`

## Mermaid

**Flowchart:**

````
```mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Do it]
    B -->|No| D[Skip]
```
````

**Sequence Diagram:**

````
```mermaid
sequenceDiagram
    User->>Server: Request
    Server-->>User: Response
```
````

**Pie Chart:**

````
```mermaid
pie title Traffic
    "Organic" : 45
    "Direct" : 30
    "Social" : 25
```
````

---

Want the rendered, interactive version? Visit <https://yeet.md/cheat-sheet>.
Full API docs at <https://yeet.md/api>.
