Markdown Reference

Syntax supported in merMDitor — standard CommonMark plus extended plugins.

Headings

SyntaxOutput
Text Formatting
SyntaxOutputNotes
Lists

Markdown
- Unordered item 1
- Unordered item 2
  - Nested item

1. Ordered item 1
2. Ordered item 2
   1. Nested ordered item
Task Lists

Markdown
- [x] Design the UI
- [x] Write the parser
- [ ] Add tests
- [ ] Deploy
Code

Markdown
`Inline code`

```javascript
function hello() {
  console.log("Hello, World!");
}
```
Tables

Markdown
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Row 1    | Data     | More     |

| Left  | Center | Right |
|:------|:------:|------:|
| Cell  | Cell   | Cell  |
Blockquotes

Markdown
> This is a blockquote
>
> Multiple paragraphs

> Outer quote
>> Nested quote
Extended Syntax

SyntaxOutputPlugin
Mermaid — Flowcharts

Mermaid
```mermaid
flowchart TD
    A[Start] --> B{Decision?}
    B -->|Yes| C[Process A]
    B -->|No| D[Process B]
    C --> E[End]
    D --> E
```
Mermaid — Sequence Diagrams

Mermaid
```mermaid
sequenceDiagram
    participant A as Alice
    participant B as Bob
    A->>B: Hello Bob, how are you?
    B-->>A: Great!
    A-)B: See you later!
```
Mermaid — Gantt Charts

Mermaid
```mermaid
gantt
    title Project Timeline
    dateFormat YYYY-MM-DD
    section Phase 1
    Design    :a1, 2024-01-01, 14d
    Build     :after a1, 21d
    section Phase 2
    Testing   :2024-02-15, 10d
```
Mermaid — Other Types
TypeKeyword
Inline Math

SyntaxDescription
Block Math

LaTeX
$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$

$$
\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}
$$
Math Examples
LaTeXDescription
Keyboard Shortcuts — Formatting

Select text first, then apply a shortcut to wrap it.

Bold
Ctrl+B
Italic
Ctrl+I
Highlight
Ctrl+Shift+H
Insert link
Ctrl+K
Blockquote
Ctrl+Q
Task list
Ctrl+Shift+L
Code block
Ctrl+Shift+~
Heading 1–6
Ctrl+1–6
Subscript
Ctrl+Shift+Y
Superscript
Ctrl+Shift+U
Keyboard Shortcuts — File Operations
Import file
Ctrl+O
Export / Save As
Ctrl+Shift+S
Save (autosave)
Ctrl+S
Find
Ctrl+F
Keyboard Shortcuts — View
Toggle preview
Ctrl+Shift+P
Toggle editor
Ctrl+Shift+E
Image insert
Ctrl+Shift+M