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>. -
Emphasis:
- Italic text: Surround with single asterisks (
*) or underscores (_). - Bold text: Surround with double asterisks (
**) or underscores (__). - Bold and italic text: Surround with triple asterisks (
***) or underscores (___). - ~~Strikethrough~~ text: Surround with double tildes (
~~).
- Italic text: Surround with single asterisks (
-
Lists:
-
Unordered lists: Use asterisks (
Renders as:*), plus signs (+), or hyphens (-) followed by a space.- Item 1
- Item 2
- Item 3
-
Ordered lists: Use numbers followed by a period and a space.
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.
Renders as: Click here to visit Google -
Images: Similar to links, but with an exclamation mark (
Renders as:!) at the beginning. The alt text goes in the square brackets. -
Blockquotes: Use the greater-than sign (
>).Renders as:> This is a blockquote. It can span multiple lines. > You can even have nested blockquotes: >> This is a nested blockquote.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 (
Renders as: The`).printf()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.
Renders as: -
Horizontal rule: Use three or more asterisks (
Renders as:***), hyphens (---), or underscores (___) on a line by themselves.
This covers the most frequently used Markdown syntax. Happy writing!