Markdown
📕 Articles
Quick Markdown Syntax Reference
Need a refresher on Markdown? Here's a handy cheat sheet for the most common syntax!
-
Headings: Use
#for<h1>,##for<h2>, and so on, up to######for<h6>.```markdown
This is an H1
This is an H2
This is an H3
```
-
Emphasis:
- Italic text: Surround with single asterisks (
*) or underscores (_).markdown *This text will be italic* _This text will also be italic_ - Bold text: Surround with double asterisks (
**) or underscores (__).markdown **This text will be bold** __This text will also be bold__ - Bold and italic text: Surround with triple asterisks (
***) or underscores (___).markdown ***This text will be bold and italic*** ___This text will also be bold and italic___ - ~~Strikethrough~~ text: Surround with double tildes (
~~).markdown ~~This text will be strikethrough~~
- Italic text: Surround with single asterisks (
-
Lists:
-
Unordered lists: Use asterisks (
*), plus signs (+), or hyphens (-) followed by a space. ```markdown- Item 1
- Item 2
- Item 3 ``` Renders as:
- Item 1
- Item 2
- Item 3
-
Ordered lists: Use numbers followed by a period and a space. ```markdown
- First item
- Second item
- Third item ``` Renders as:
- First item
- Second item
- Third item
-
-
Links: Use square brackets for the link text and parentheses for the URL. You can optionally add a title in quotes after the URL.
markdown [Click here to visit Google](https://www.google.com "Google's Homepage")Renders as: Click here to visit Google -
Images: Similar to links, but with an exclamation mark (
!) at the beginning. The alt text goes in the square brackets.markdown Renders as: -
Blockquotes: Use the greater-than sign (
>).```markdown
This is a blockquote. It can span multiple lines. You can even have nested blockquotes:
This is a nested blockquote. ``` Renders as:
This is a blockquote. It can span multiple lines. You can even have nested blockquotes:
This is a nested blockquote.
-
Inline code: Surround code with backticks (
`).markdown The `printf()` function is used to display output.Renders as: Theprintf()function is used to display output. -
Code blocks: Use triple backticks (`````) before and after the code block. You can optionally specify the language for syntax highlighting.
markdownpython def greet(name): print(f"Hello, {name}!")greet("World") ``` Renders as:
```python def greet(name): print(f"Hello, {name}!")
greet("World") ```
-
Horizontal rule: Use three or more asterisks (
***), hyphens (---), or underscores (___) on a line by themselves.```markdown
``` Renders as:
This covers the most frequently used Markdown syntax. Happy writing!