Appearance
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 3Emphasis
- 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- First item
- Second item
- Subitem
Links
markdown
[Link Text](https://example.com)Images
markdown
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 1 | Header 2 |
|---|---|
| Cell 1 | Cell 2 |
| Cell 3 | Cell 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!