Markdown Cheat Sheet

A quick reference for everything you need to write Markdown content.

Headings

# H1

## H2

### H3

#### H4

Text formatting

**bold**
_italic_
**_bold and italic_**
~~strikethrough~~
`inline code`
[Link text](https://example.com)
![Alt text](https://example.com/image.png)

Lists

- Unordered item
- Another item
    - Nested item

1. Ordered item
2. Another item
    1. Nested item

Code

Inline: wrap in backticks — `code`

Block: wrap in triple backticks with an optional language name:

```javascript
const x = 42
```

Blockquotes

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

Tables

| Column 1 | Column 2 |
| -------- | -------- |
| Cell A   | Cell B   |
| Cell C   | Cell D   |

Task lists

- [x] Done
- [ ] Not done

Horizontal rule

---

Frontmatter

LiteNode reads the YAML block at the top of every file:

---
title: "My Page"
description: "A short description."
href: my-page
tags: ["tag1", "tag2"]
metadata:
    category: "Some Category"
    index: 1
---

Use quotes around strings that contain special characters. Arrays use [item1, item2]. Nested objects use indentation.

Custom heading IDs

LiteNode supports custom anchor IDs on headings:

## My Section {#my-section}

This renders as <h2 id="my-section">My Section</h2>, which you can link to with #my-section.

HTML in Markdown

You can embed raw HTML anywhere in a Markdown file:

<div class="callout">
  This is a custom callout block.
</div>

LiteNode passes it through unchanged.