Skip to content

Instantly share code, notes, and snippets.

@lakshyaelite
Created August 10, 2025 06:21
Show Gist options
  • Save lakshyaelite/7fd4e4b062d83f28ec40271209e68c9b to your computer and use it in GitHub Desktop.
Save lakshyaelite/7fd4e4b062d83f28ec40271209e68c9b to your computer and use it in GitHub Desktop.
The only markdown cheatsheet you'll ever need.

πŸ“„ Headings

H1

H2

H3

H4

H5
H6

Syntax:

# H1
## H2
### H3
#### H4
##### H5
###### H6

✏️ Text Formatting

Italic

Bold

Strikethrough

Inline code

Syntax:

*Italic* or _Italic_
**Bold** or __Bold__
~~Strikethrough~~
`Inline code`

πŸ“‹ Lists

Unordered List

  • Item 1

  • Item 2

    • Sub-item

      • Sub-sub-item
  • You can also use asterisks

Syntax:

- Item 1
- Item 2
  - Sub-item
    - Sub-sub-item
- You can also use asterisks

Ordered List

  1. First

  2. Second

    1. Sub-item

Syntax:

1. First
2. Second
   1. Sub-item

πŸ“Ž Links

Link text

https://example.com

Syntax:

[Link text](https://example.com)

<https://example.com>

πŸ–ΌοΈ Images

Placeholder Image

Syntax:

![Placeholder Image](https://placehold.co/150)

πŸ“¦ Code Blocks

Inline Code

Use git status to check the repo status.

Syntax:

Use `git status` to check the repo status.

Multiline Code Block

def hello():
    print("Hello, World!")

Syntax:

```python
def hello():
    print("Hello, World!")
```

πŸ“Š Blockquotes

This is a blockquote.
It can span multiple lines.

Syntax:

> This is a blockquote.
> It can span multiple lines.

βœ… Task Lists

  • Done item
  • To-do item

Syntax:

- [x] Done item
- [ ] To-do item

πŸ”— Tables

Header 1 Header 2
Cell 1 Cell 2
Cell 3 Cell 4

Syntax:

| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

🧱 Horizontal Rule


Syntax:

---

πŸŽ‰ Emoji

πŸ˜„ πŸš€ πŸŽ‰

Syntax:

:smile: :rocket: :tada:

🧭 Mentions and References

@octocat #123 owner/repo#123

Syntax:

@octocat
#123
owner/repo#123

πŸ“Œ Collapsible Content

Click to expand

Hidden content here

Syntax:

<details>
  <summary>Click to expand</summary>

  Hidden content here

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment