Markdown Guide
A comprehensive reference guide with live examples for all supported Markdown syntax.
Headings
Use # symbols to define headings. The number of # symbols determines the heading level — one # for H1 down to six ###### for H6.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6Horizontal Rules
Create a thematic break (horizontal line) using three or more dashes, underscores, or asterisks on a line by themselves.
-----_____*****Emphasis
Apply bold, italic, or strikethrough formatting using asterisks (*) or underscores (_) around text.
**This is bold text**
__This is bold text__*This is italic text*
_This is italic text_~~Strikethrough~~Lists
Create unordered lists with -, +, or * and ordered lists with numbers. Indent nested items with a tab or two spaces.
- Unordered
- Create a list by starting a line with `+`, `-`, or `*`
- list
- With nesting too
- end1. Ordered
2. list
1. With nesting57. foo
1. barTask Lists
Create interactive checklists using GitHub Flavored Markdown syntax. Use - [ ] for an empty checkbox and - [x] for a checked one.
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the mediaBlockquotes
Create blockquotes with the > prefix. Add multiple > symbols to create nested blockquotes.
> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.Code
Format inline code with single backticks and create fenced code blocks with triple backticks. Add a language name after the opening fence for syntax highlighting.
Inline `code````
Sample text here...
``````js
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
``````python
def hello(name):
print(f"Hello, {name}!")
hello("World")
```Tables
Build tables with pipe (|) separators. Use colons (:) in the separator row to control column alignment — left :---, center :---:, right ---:.
| Trial | Result |
|-------|---------|
| 1 | Fail |
| 2 | Fail |
| 3 | Success || Left | Center | Right |
|:------|:------:|------:|
| Left | Center | Right |
| Align | Column | Data |Links
Create hyperlinks with [text](url) syntax.
[Markdown Viewer](https://markdownviewer.cc)Images
Embed images with  syntax — identical to links but prefixed with !.
Math Formulas
Write mathematical expressions using LaTeX syntax rendered by MathJax. Use $...$ for inline math and $$...$$ for block (display) equations.
Einstein's famous equation: $E = mc^2$$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$$$\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$$$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$$