Sorenavo / Learning guideTry in the editor
Online editorMarkdown Basics

01 / BASIC SYNTAX

Markdown Basics

Learn the basic syntax supported by this editor. Copy the examples into the workspace to practice and see the results immediately.

Headings

Start a line with # followed by a space. More hashes create deeper heading levels.

markdown
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Use one level-one heading for the document title, then organize sections with level-two headings.

Paragraphs and line breaks

Separate paragraphs with a blank line.

markdown
This is the first paragraph.

This is the second paragraph.

To insert a line break within a paragraph, add two spaces before pressing Enter.

Emphasis

markdown
*Italic*
**Bold**
***Bold and italic***
~~Deleted text~~

Result: Italic, Bold, Bold and italic, Deleted text.

Lists

Bullet lists

markdown
- Apple
- Banana
  - Small banana
  - Large banana

Numbered lists

markdown
1. Prepare content
2. Write the document
3. Check the preview

Indent nested items by two or four spaces.

Task lists

markdown
- [x] Completed task
- [ ] Pending task

Result:

Blockquotes

Start a paragraph with > to create a quotation.

markdown
> Writing helps organize your thoughts.

Result:

Writing helps organize your thoughts.

Links and images

Put link text in square brackets and the address in parentheses. Add ! before a link to display an image. Use a local site path or an address you control.

markdown
[Read the project notes](./README.md)
![Image description](./images/example.png)

The image description remains available if the image cannot load. Choose text that accurately describes the image.

Horizontal rules

Place three or more hyphens on their own line to separate sections.

markdown
First section

---

Second section

Inline code

Wrap commands, filenames or variables in backticks.

markdown
Run `npm run build` to build the project.

Result: Run npm run build to build the project.

Code blocks

Wrap multiple lines of code in triple backticks. Add a language name after the opening fence to enable syntax highlighting.

markdown
```javascript
function add(left, right) {
  return left + right
}
```

Result:

javascript
function add(left, right) {
  return left + right
}

Tables

Separate columns with pipes and use hyphens on the second line for the header. Colons control alignment.

markdown
| Item | Status | Count |
| :--- | :---: | ---: |
| Documents | Done | 3 |
| Examples | In progress | 1 |

Result:

Item Status Count
Documents Done 3
Examples In progress 1