Markdown Cheatsheet
Quick reference for everything you need in MkDocs/Material. Author: Johan Beysen
1. Text Formatting
bold | italic | ~~strikethrough~~ | inline code
2. Headings
3. Lists
4. Links & Images
[link text](https://url.com)
[internal link](../tools/nmap.md)

{ width="600" }
5. Code
Inline: `code`
Block with syntax highlighting:
```bash
nmap -sV -sC -oA scan 10.10.10.1
```
```python
import requests
r = requests.get("https://target.com")
print(r.status_code)
```
```powershell
Get-ChildItem -Recurse | Select-Object Name
```
6. Tables
| Tool | Use | Category |
|-----------|----------------------|------------|
| Nmap | Port scanning | Recon |
| Burp Suite| Web app testing | Web |
| Mimikatz | Credential dumping | Post-exploit|
| Tool | Use | Category |
|---|---|---|
| Nmap | Port scanning | Recon |
| Burp Suite | Web app testing | Web |
| Mimikatz | Credential dumping | Post-exploit |
7. Blockquotes
This is a quote or a remark.
8. Horizontal Rule
9. Material Theme Extras
9.1 Admonitions (colored blocks)
!!! danger "Critical Finding"
RCE possible via unsanitized input on the /upload endpoint.
!!! warning "Watch out"
Only test on systems you have permission for.
!!! tip "Pro tip"
Use Burp Repeater for manual testing of parameters.
!!! note "Note"
See also the OWASP Testing Guide v4.
!!! success "Resolved"
Patch rolled out on 2024-03-01.
!!! info "Info"
CVE-2024-XXXX — CVSS score 9.8
Critical Finding
RCE possible via unsanitized input on the /upload endpoint.
Pro tip
Use Burp Repeater for manual testing of parameters.
9.2 Collapsible Blocks
```m u arkdown
Click to expand
Hidden content here. Handy for long payloads or output.
Open by default
This block is open by default.
??? note "Click to expand"
Hidden content here. Handy for long payloads or output.
### 9.3 Tabs
```markdown
=== "Linux"
```bash
curl -X POST https://target.com/api
```
=== "Windows"
```powershell
Invoke-RestMethod -Uri https://target.com/api -Method POST
```
=== "Python"
```python
requests.post("https://target.com/api")
```
9.4 Frontmatter
10. Handy Shortcuts in VS Code
| Action | Shortcut |
|---|---|
| Open preview | Ctrl+Shift+V |
| Bold | Ctrl+B |
| Italic | Ctrl+I |
| Insert link | Ctrl+K |
| Find in file | Ctrl+F |
| Find in project | Ctrl+Shift+F |
11. MkDocs Specific
Internal Links
Images in Assets
MkDocs Commands
mkdocs serve # Start live preview
mkdocs build # Build the static site
mkdocs new . # Create a new project
More info: MkDocs Material documentation