Markdown Guide

This page is a practical reference for writing standard Markdown in mdgist.

Headings

# H1
## H2
### H3
#### H4
##### H5
###### H6

Paragraphs and Line Breaks

Leave a blank line between paragraphs.

This is the first paragraph.

This is the second paragraph.

For a forced line break, end a line with two spaces.

Emphasis

*italic* or _italic_
**bold** or __bold__
***bold + italic***
~~strikethrough~~

Blockquotes

> A single-level quote.
>
> Still part of the same quote.

>> A nested quote.

Lists

Unordered:

- Item one
- Item two
  - Nested item

Ordered:

1. First
2. Second
3. Third

Task list:

- [ ] Open task
- [x] Completed task

Inline link:

[mdgist](https://example.com)

Reference link:

[Docs][docs]

[docs]: https://example.com/docs

Images

![Alt text](https://example.com/image.png "Optional title")

Inline Code and Code Blocks

Inline code:

Use `const value = 1` in JavaScript.

Fenced code block:

```js
function greet(name) {
  return `hello ${name}`;
}
```

Horizontal Rules

---

Tables

| Name  | Role     | Active |
|-------|----------|--------|
| Alex  | Writer   | Yes    |
| Jamie | Reviewer | No     |

Escaping Characters

Use a backslash to escape formatting characters.

\*not italic\*
\# not a heading

HTML in Markdown

Simple HTML generally works in Markdown documents.

<details>
  <summary>Click to expand</summary>
  Hidden content.
</details>

Optional Table of Contents Token

You can insert this token to place a generated table of contents:

[[[TOC]]]