Markdown is a lightweight markup language created by John Gruber in 2004 year. It is widely used in README files, documentation, blogs, and version control systems. This article is a complete syntax cheat sheet with examples.
For checking markup in real time, Markdown Preview on rechecker.ru is convenient.
Headings
Headings are created with the # character. The level is determined by the number of hash marks:
# Заголовок H1
## Заголовок H2
### Заголовок H3
#### Заголовок H4
##### Заголовок H5
###### Заголовок H6Alternative syntax for H1 and H2 (in some parsers only):
Заголовок H1
===========
Заголовок H2
-----------Text formatting
| Syntax | Result |
|---|---|
*курсив* or _курсив_ | italic |
**жирный** or __жирный__ | bold |
***жирный курсив*** | bold italic |
~~зачёркнутый~~ | |
`code` | code |
Lists
Ordered lists
1. Первый пункт
2. Второй пункт
3. Третий пунктUnordered lists
- Пункт с дефисом
* Пункт со звёздочкой
+ Пункт с плюсомNested lists
- Уровень 1
- Уровень 2
- Уровень 3Checklists (GitHub Flavored Markdown)
- [x] Выполнено
- [ ] Не выполненоLinks and images
Links
[Текст ссылки](https://example.com)
[Ссылка с подсказкой](https://example.com "Подсказка при наведении")
[Ссылка-ссылка][1]
[1]: https://example.comImages

Code
Inline code
Используйте функцию `printf()` для вывода.Code blocks
Three backticks followed by the language name:
```javascript
function hello() {
console.log("Hello, World!");
}
``````python
def greet(name):
return f"Hello, {name}!"
```Supported languages: javascript, python, php, bash, sql, json, html, css, and others.
Tables
| Колонка 1 | Колонка 2 | Колонка 3 |
|-----------|-----------|-----------|
| Ячейка 1 | Ячейка 2 | Ячейка 3 |
| Ячейка 4 | Ячейка 5 | Ячейка 6 |Alignment (in some parsers):
| По левому | По центру | По правому |
|:----------|:---------:|----------:|
| Текст | Текст | Текст |Blockquotes
> Цитата первого уровня
>> Вложенная цитата
>>> Глубокая вложенностьHorizontal rule
---
***
___Three or more -, *, or _ characters on a separate line.
Escaping
Special characters are escaped with a backslash:
\* не курсив
\[ не ссылка
\# не заголовокExtended syntax (GFM, CommonMark)
Automatic links
<https://example.com>
<user@example.com>Definitions
Термин
: Определение терминаStrikethrough
~~удалённый текст~~Tasks
- [x] Задача выполнена
- [ ] Задача не выполненаDiagrams (Mermaid, not supported everywhere)
```mermaid
graph TD
A[Старт] --> B{Условие}
B -->|Да| C[Результат 1]
B -->|Нет| D[Результат 2]
```Usage recommendations
- Add a blank line before headings — this improves compatibility across parsers
- Add spaces after list markers — required for correct rendering
- Add a blank line before code blocks — prevents them from merging with the text
- Specify a language for code blocks — enables syntax highlighting
Markdown tool on rechecker.ru lets you check markup in real time and export the result. Use it when writing README files, documentation, and technical articles.