- Introduction to Markdown
- Headings
- Paragraphs and Line Breaks
- Emphasis (Bold, Italic, Strikethrough)
- Blockquotes
- Lists (Ordered & Unordered)
- Links
- Images
- Code Blocks & Syntax Highlighting
- Tables
- Horizontal Rules
- Inline HTML
- Escaping Characters
- Task Lists
- Footnotes
- Superscript and Subscript
- Emoji Support
- Math Expressions (LaTeX)
- Extended Features (GitHub Flavored Markdown)
Markdown is a lightweight markup language used to format plain text. It is widely used in:
- GitHub README files
- Documentation
- Blogging platforms
- Writing notes and emails
- Content creation for websites
Markdown makes text formatting easy and readable without complex HTML or CSS.
You can create headings using the # symbol.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6A new paragraph is created by adding a blank line between blocks of text.
This is the first paragraph.
This is the second paragraph.Use two spaces at the end of a line or <br> for a line break.
First line with two spaces at the end.
Second line.Rendered as:
First line with two spaces at the end.
Second line.
*italic* or _italic_Rendered as: italic
**bold** or __bold__Rendered as: bold
***bold and italic***Rendered as: bold and italic
~~Strikethrough~~Rendered as: Strikethrough
Used for quoting text.
> This is a blockquote.
>> Nested blockquote.Rendered as:
This is a blockquote.
Nested blockquote.
- Item 1
- Item 2
- Sub-item 1
- Sub-item 21. First item
2. Second item
1. Sub-item
2. Sub-item[Google](https://www.google.com)Rendered as: Google
[Google][google-link]
[google-link]: https://www.google.com![Alt text][image-link]
[image-link]: https://example.com/image.jpgUse `inline code` like this.Rendered as: Use inline code like this.
print("Hello, World!")
```python
print("Hello, World!")Rendered as:
```python
print("Hello, World!")
| Name | Age | Country |
|--------|-----|---------|
| Alice | 25 | USA |
| Bob | 30 | UK || Name | Age | Country |
|---|---|---|
| Alice | 25 | USA |
| Bob | 30 | UK |
---<p style="color:blue">This is blue text</p>Use a backslash (\) to escape characters.
\*This is not italicized\*Rendered as: *This is not italicized*
- [x] Task 1
- [ ] Task 2
- [ ] Task 3Rendered as:
- Task 1
- Task 2
- Task 3
This is a sentence with a footnote.[^1]
[^1]: This is the footnote text.Superscript: E = mc^2
Subscript: H~2~ORendered as:
Superscript: E = mcยฒ
Subscript: HโO
๐ :rocket:Rendered as: ๐
$$ E = mc^2 $$Rendered as:
$$ E = mc^2 $$
- Task Lists
- Tables
- Syntax Highlighting
- Emojis
- Footnotes
- Blockqutes
- Code and Syntax Highlighting
- Emphasis
- Heading
- Images
- Line Breaks
- Links
- List
- Phrase emphasis
- SUperscript and subscript
- Table
> Email-style angle brackets are used for blockquotes.
>> You can nest them too.
>>
> * You can quote a
> * list
> To break the nested blockquote, add a space between lines.
Add another line to resume regular paragraph text.
Email-style angle brackets are used for blockquotes.
You can nest them too.
- You can quote a
- list
To break the nested blockquote, add a space between lines.
Add another line to resume regular paragraph text.
- Code and Syntax Highlighting
Inline `code` has `back-ticks around` it.
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
var s = "JavaScript syntax highlighting";
alert(s);
```python
s = "Python syntax highlighting"
print s
```
s = "Python syntax highlighting"
print s
```
No language indicated, so no syntax highlighting.
But let's throw in a tag.
```
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
- Emphasis, aka italics, with *asterisks* or _underscores_.
- Strong emphasis, aka bold, with **asterisks** or __underscores__.
- Combined emphasis with **asterisks and _underscores_**.
- Strikethrough uses two tildes. ~~Scratch this.~~
Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough uses two tildes. Scratch this.
# Heading 1
## Heading 2
### Heading 3
![text][id]
[id]: /url/img.jpg "Title"
- insert one newline
- use
<br>
-
Inline (titles are optional)
My Link [linked text](http://github.com/potatoscript/ "Title")
My Link linked text -
Reference-style labels (titles are optional)
My Link [linked-text][myId]
Define the link anywere in the same block:
[myId]: http://github.com/potatoscript/ "Title"
My Link [linked-text][myId]
1. Car
2. Dog
- Car
- Dog
* Car \
myCat kitty
* Dog \
Snoopy
-
Car
myCat kitty -
Dog
Snoopy
* ABC
* abc
* 123
1. A
2. B
3. C
- ABC
- abc
- 123
- A
- B
- C
*italic* and **bold**
italic and bold
-
Superscript
E=MC<sup>2</sup>
E=MC2 -
Subscript
The CO<sub>2</sub>
The CO2
Colons can be used to align columns.
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1000 |
| col 2 is | centered | $10 |
| zebra stripes | are neat | $1 |
There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the
raw Markdown line up prettily. You can also use inline Markdown.
Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1000 |
| col 2 is | centered | $10 |
| zebra stripes | are neat | $1 |
