Markdown is a lightweight markup language that allows you to format text using plain text syntax. Here are 15 Markdown features with examples:
Headers:
Use # for headers. More # means a smaller header.
markdown
Bold Text:
Surround text with ** or __ for bold.
markdown
Bold Text Bold Text
Italic Text:
Surround text with * or _ for italic.
markdown
Italic Text Italic Text
Strikethrough:
Use ~~ to strike through text.
markdown
Strikethrough Text
Blockquote:
Use > to create a blockquote.
markdown
This is a blockquote.
Lists:
Use -, *, or + for unordered lists. Use numbers for ordered lists.
markdown
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- First item
- Second item
- Subitem 2.1
- Subitem 2.2
Code Blocks:
Use backticks for inline code. Use triple backticks for code blocks.
markdown
Inline code
def hello_world():
print("Hello, world!")`
Horizontal Rule:
Use ---, ***, or ___ to create a horizontal rule.
Links:
Use [link text](URL) for links.
markdown
Images:
Use ![alt text](image URL) for images.
markdown
Tables:
Use | to create tables.
markdown
Header 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Cell 3 | Cell 4 |
Task Lists:
Use - [ ] for unchecked tasks and - [x] for checked tasks.
markdown
- Task 1
- Task 2
Inline HTML:
Embed HTML directly within Markdown.
markdown
This is red text
Footnotes:
Use [^1] to add footnotes.
markdown
This is a sentence with a footnote.1
Emojis:
Use :emoji_name: to add emojis.
markdown
:smile: :rocket: :tada:
By using these features, you can create well-structured and visually appealing Markdown documents for your GitHub repositories or any other purpose where Markdown is supported.
courtesy of our friend chatGPT
Footnotes
-
This is the footnote. ↩