How to write a heading in Markdown
Use hash symbols (#) for headingsβthe number of symbols sets the level.
# First heading
## Second heading
### Third heading
First heading
Second heading
Third heading
How to write code in Markdown
Use backticks (`) to write commands or snippets.
let sum = 5 + 5
Use asterisks (*) to format text: one on each side for italics, two for bold. Underscores (_) work the same way. With three asterisks you combine both.
How to write bold and italic text in Markdown
Bold **Bold** or __Bold__
Italic *Italic* or _Italic_
Bold and Italic ***Bold and Italic***
How to strikethrough text in Markdown
Use two tildes (~) on each side to strike through text.
Strikethrough text ~~Strikethrough text~~
How to write a quote in Markdown
Use the greater-than symbol (>) to write a quote.
> This is a quote
This is a quote
How to write a list in Markdown
In a Markdown file you can also rely on HTML tags like <details> and <summary> to create a disclosure widget.
<details>
<summary>
List
</summary>
- first
- second
- third
</details>
List
- first
- second
- third
