Skip to content

Markdown is a lightweight markup language for creating formatted text using a plain-text editor. It's widely used for documentation, README files, and blogging.

Headings

Use # for headings. The number of # symbols indicates the heading level.

markdown
# Heading 1
## Heading 2
### Heading 3

Emphasis

  • Italic: *text* or _text_
  • Bold: **text** or __text__
  • Bold and Italic: ***text***

Lists

Unordered List

markdown
- Item 1
- Item 2
    - Subitem
* Another item
  • Item 1
  • Item 2
    • Subitem
  • Another item

Ordered List

markdown
1. First item
2. Second item
     1. Subitem
  1. First item
  2. Second item
    1. Subitem
markdown
[Link Text](https://example.com)

Link Text

Images

markdown
![Alt Text](https://example.com/image.png)

Code

Inline Code

Use backticks: `code`

Code Block

```language
// Example in JavaScript
console.log('Hello, world!');
```

Blockquotes

markdown
> This is a blockquote.
>> Nested blockquote.

This is a blockquote.

Nested blockquote.

Tables

markdown
| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |
Header 1Header 2
Cell 1Cell 2
Cell 3Cell 4

Horizontal Rules

Three or more dashes, asterisks, or underscores:

markdown
---
***
___



Escaping Characters

Use a backslash \ before special characters:

markdown
\*Not italic\*

*Not italic*


Conclusion

Markdown is simple yet powerful for formatting text. Practice these basics to create well-structured documents!