pdf to markdown
← Blog

Markdown Syntax Cheat Sheet

This is a quick reference for the Markdown syntax elements you will use most often. Bookmark it and come back whenever you need to look something up. All syntax below works in standard Markdown and GitHub-Flavored Markdown (GFM).

Headings

MarkdownResult
# Heading 1Largest heading (H1)
## Heading 2Second level (H2)
### Heading 3Third level (H3)
#### Heading 4Fourth level (H4)

Use a single # per document for the page title. Use ## and ### for sections and subsections.

Text emphasis

MarkdownResult
**bold text**bold text
*italic text*italic text
***bold and italic***bold and italic
~~strikethrough~~strikethrough (GFM)
`inline code`inline code

Lists

MarkdownResult
- Item one - Item two - Item threeUnordered (bullet) list
1. First 2. Second 3. ThirdOrdered (numbered) list
- Parent - Child - ChildNested list (indent with 2 spaces)
- [x] Done - [ ] Not doneTask list / checkbox (GFM)

Links and images

MarkdownResult
[Link text](https://example.com)Clickable hyperlink
[Link text](https://example.com "Title")Link with hover title
![Alt text](image.png)Embedded image

Code blocks

MarkdownResult
``` code here ```Fenced code block
```javascript const x = 1; ```Code block with syntax highlighting

Use three backticks (```) to start and end a code block. Add a language name after the opening backticks for syntax highlighting.

Tables (GFM)

MarkdownResult
| Name | Role | | --- | --- | | Alice | Dev | | Bob | Design |Two-column table with header row
| Left | Center | Right | | :--- | :---: | ---: |Column alignment with colons

Tables require the header separator row (| --- |). Use colons for alignment: :--- left, :---: center, ---: right.

Other elements

MarkdownResult
> This is a blockquoteIndented quote block
---Horizontal rule / divider
Line one \nLine twoLine break (two trailing spaces or \n)

Where to use Markdown

This syntax works in GitHub READMEs, Obsidian, Notion, VS Code, Docusaurus, Hugo, Jekyll, MkDocs, and most other Markdown-compatible tools. Some platforms add extensions (like Obsidian's [[wikilinks]]), but the core syntax above is universal.

When you convert a PDF to Markdown using our tool, the output uses these same syntax elements — headings, bold, italic, lists, and tables — so the file is ready to use anywhere.