BelajarKoding Logobelajarkoding

Platform belajar web development Indonesia. Artikel, cheat sheets, roadmap, dan code challenges untuk developer Indonesia.

Navigasi

  • Artikel
  • Cheat Sheets
  • Roadmap
  • Challenges
  • Pricing
  • Search

Produk Lain

  • JagoHermes
  • KelasClaude
  • KilatKoding
  • BelajarVibeCoding
  • JualanKoding

Support

  • Privacy Policy
  • Terms of Service
  • Email

© 2026 BelajarKoding. All rights reserved.

Galih PratamaBagian dari ekosistem Galih Pratama
belajarkoding LogobyGalih Pratama
RoadmapArtikelCheat SheetsChallengesUpgrade
belajarkoding LogobyGalih Pratama
RoadmapArtikelCheat SheetsChallengesUpgrade
belajarkoding LogobyGalih Pratama
RoadmapArtikelCheat SheetsChallengesUpgrade

Daftar Isi

Basic SyntaxHeadingsText FormattingParagraphs & Line BreaksListsLinksImagesCodeInline CodeCode BlocksTablesBasic TableAlignmentSimplified TableHorizontal RulesBlockquotesHTML dalam MarkdownAdvanced FeaturesFootnotesDefinition ListsAbbreviationsEmoji (GitHub Flavored Markdown)Auto-linkingGitHub Flavored Markdown (GFM)Syntax HighlightingAlerts (GitHub, 2025)Collapsed SectionsDiagrams (Mermaid)Pattern UmumBadgesCode with OutputMathematical ExpressionsCalloutsPlatform-Specific FeaturesGitHubGitLabNotionObsidianTools & EditorsOnline EditorsDesktop EditorsPreview ToolsQuick ReferenceShortcutsKesalahan UmumEscaping Characters
MarkdownDocumentation

Markdown Cheat Sheet

Referensi lengkap Markdown syntax. Dari basic formatting sampe advanced features. Perfect buat dokumentasi, README, dan blogging.

Markdown7 min read1.234 kata
Silakan login atau daftar untuk membaca cheat sheet ini.

#Basic Syntax

Sintaks dasar Markdown untuk membuat konten yang terstruktur dan mudah dibaca.

#Headings

Cara membuat heading dengan berbagai level untuk mengorganisir konten.

markdown
# H1 - Heading paling besar
## H2 - Heading level 2
### H3 - Heading level 3
#### H4 - Heading level 4
##### H5 - Heading level 5
###### H6 - Heading level 6

#Text Formatting

Berbagai cara untuk memformat teks seperti bold, italic, dan kode.

markdown
**Bold text** atau __Bold text__
 
*Italic text* atau _Italic text_
 
***Bold dan Italic*** atau ___Bold dan Italic___
 
~~Strikethrough text~~
 
`Inline code`
 
> Blockquote
> Bisa multi-line juga

#Paragraphs & Line Breaks

Cara membuat paragraf dan line breaks dalam Markdown.

markdown
Ini paragraph pertama.
 
Ini paragraph kedua. Pisahin pake baris kosong.
 
Buat line break,
tambah 2 spasi di akhir baris.

#Lists

Cara membuat berbagai jenis list termasuk unordered, ordered, dan task lists.

#Unordered Lists

List dengan bullet points yang tidak berurutan.

markdown
- Item 1
- Item 2
- Item 3
 - Sub item 3.1
 - Sub item 3.2
 
* Bisa pake asterisk juga
* Item 2
 
+ Atau plus sign
+ Item 2

#Ordered Lists

List dengan numbering yang berurutan.

markdown
1. First item
2. Second item
3. Third item
  1. Sub item 3.1
  2. Sub item 3.2
 
1. Bisa pake angka 1 semua
1. Auto numbering
1. Tetep terurut

#Task Lists

List untuk tracking progress tasks dengan checkbox.

markdown
- [x] Task yang udah selesai
- [ ] Task yang belum
- [ ] Task lainnya

#Links

Cara membuat hyperlink ke halaman web atau file lain.

markdown
[Link text](https://example.com)
 
[Link dengan title](https://example.com "Ini title")
 
[Reference-style link][1]
 
[1]: https://example.com "Reference link"
 
<https://example.com> - Auto link
 
[Relative link](../path/to/file.md)

#Images

Cara menampilkan gambar dengan alt text dan berbagai format.

markdown
![Alt text](image.jpg)
 
![Alt text](image.jpg "Image title")
 
![Alt text][image-ref]
 
[image-ref]: image.jpg "Referenced image"
 
<!-- Dengan link -->
[![Alt text](image.jpg)](https://example.com)

#Code

Cara menampilkan kode dengan syntax highlighting dan inline code.

#Inline Code

Kode singkat yang ditampilkan dalam satu baris teks.

markdown
Pake `backticks` buat inline code.
 
Command: `npm install`

#Code Blocks

markdown
```
Code block tanpa syntax highlighting
Cukup pake 3 backticks
```
 
```javascript
// Code block dengan syntax highlighting
const hello = "Hello World";
console.log(hello);
```
 
```python
# Python code
def greet(name):
  return f"Hello, {name}!"
```

#Indented Code Blocks

markdown
  Indent 4 spasi atau 1 tab
  Jadi code block juga
  Tapi gak ada syntax highlighting

#Tables

#Basic Table

markdown
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1  | Cell 2  | Cell 3  |
| Cell 4  | Cell 5  | Cell 6  |

#Alignment

markdown
| Left Align | Center Align | Right Align |
|:-----------|:------------:|------------:|
| Left    | Center    | Right    |
| Text    | Text     | Text    |

#Simplified Table

markdown
Header 1 | Header 2 | Header 3
---------|----------|----------
Cell 1  | Cell 2  | Cell 3
Cell 4  | Cell 5  | Cell 6

#Horizontal Rules

markdown
---
 
***
 
___
 
Semua bisa dipake buat bikin horizontal line

#Blockquotes

markdown
> Single line quote
 
> Multi-line quote
> Line kedua
> Line ketiga
 
> Nested quote
>> Quote di dalam quote
 
> Quote dengan **formatting**
> - List di dalam quote
> - Item 2

#HTML dalam Markdown

markdown
Bisa pake HTML langsung:
 
<div align="center">
 <h2>Centered Heading</h2>
 <p>Centered paragraph</p>
</div>
 
<details>
<summary>Click to expand</summary>
 
Hidden content di sini
 
</details>
 
<kbd>Ctrl</kbd> + <kbd>C</kbd>
 
<mark>Highlighted text</mark>

#Advanced Features

#Footnotes

markdown
Here's a sentence with a footnote[^1].
 
[^1]: This is the footnote content.
 
Multiple footnotes[^note1] [^note2]
 
[^note1]: First note
[^note2]: Second note

#Definition Lists

markdown
Term 1
: Definition 1
 
Term 2
: Definition 2a
: Definition 2b

#Abbreviations

markdown
The HTML specification
is maintained by the W3C.
 
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium

#Emoji (GitHub Flavored Markdown)

markdown
:smile: :heart: :thumbsup:
 
:rocket: :fire: :tada:
 
Cek daftar lengkap: https://github.com/ikatyang/emoji-cheat-sheet

#Auto-linking

markdown
www.example.com - Auto jadi link
 
https://example.com - Auto jadi link
 
email@example.com - Auto jadi link

#GitHub Flavored Markdown (GFM)

#Syntax Highlighting

markdown
```diff
- Deleted line (merah)
+ Added line (hijau)
! Changed line (orange)
# Comment line (abu-abu)
```
 
```json
{
 "name": "example",
 "version": "1.0.0"
}
```

#Mentions & References

markdown
@username - Mention user
 
#123 - Reference issue/PR
 
organization/repository#123 - Cross-repo reference
 
SHA: a5c3785ed8d6a35868bc169f07e40e889087fd2e
 
username/repository@SHA

#Alerts (GitHub, 2025)

markdown
> [!NOTE]
> Highlights information that users should take into account
 
> [!TIP]
> Optional information to help a user be more successful
 
> [!IMPORTANT]
> Crucial information necessary for users to succeed
 
> [!WARNING]
> Critical content demanding immediate user attention
 
> [!CAUTION]
> Negative potential consequences of an action

#Collapsed Sections

markdown
<details>
<summary>Click me</summary>
 
### Hidden content
 
Content di sini bakal di-collapse.
Bisa pake Markdown juga!
 
- List item
- Item 2
 
</details>

#Diagrams (Mermaid)

markdown
```mermaid
graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
```
 
```mermaid
sequenceDiagram
  participant Alice
  participant Bob
  Alice->>Bob: Hello Bob!
  Bob->>Alice: Hello Alice!
```
 
```mermaid
pie title Pets
  "Dogs" : 386
  "Cats" : 85
  "Rats" : 15
```

#Best Practices

#File Organization

markdown
# Project Title
 
Brief description di sini.
 
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
 
## Installation
 
Installation steps...
 
## Usage
 
Usage examples...
 
## Contributing
 
Guidelines...

#Pattern Umum

#Badges

markdown
![Build Status](https://img.shields.io/badge/build-passing-brightgreen)
![Coverage](https://img.shields.io/badge/coverage-95%25-green)
![License](https://img.shields.io/badge/license-MIT-blue)

#Code with Output

markdown
```bash
$ npm install
```
 
Output:
```
added 142 packages in 5.2s
```

#Keyboard Shortcuts

markdown
<kbd>Ctrl</kbd> + <kbd>C</kbd> - Copy
<kbd>Ctrl</kbd> + <kbd>V</kbd> - Paste
<kbd>Ctrl</kbd> + <kbd>Z</kbd> - Undo

#Mathematical Expressions

markdown
Inline math: $E = mc^2$
 
Block math:
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$

#Callouts

markdown
> **Tip**: Helpful information
 
> **Warning**: Important warning
 
> 🚫 **Danger**: Critical warning
 
> ℹ️ **Info**: Additional information

#Platform-Specific Features

#GitHub

markdown
- [x] Task lists
- Emoji :smile:
- @mentions
- #issue references
- Syntax highlighting
- Tables
- Mermaid diagrams

#GitLab

markdown
- Video embedding
- Math with KaTeX
- PlantUML diagrams
- Charts

#Notion

markdown
- Databases
- Toggles
- Callouts
- Columns

#Obsidian

markdown
[[Wiki-style links]]
![[Embedded notes]]
#tags
^block-references

#Tools & Editors

#Online Editors

markdown
- Dillinger (dillinger.io)
- StackEdit (stackedit.io)
- HackMD (hackmd.io)
- CodiMD

#Desktop Editors

markdown
- Typora
- Mark Text
- Obsidian
- VS Code (dengan Markdown extensions)
- Notion

#Preview Tools

markdown
- Markdown Preview (VS Code extension)
- Grip (GitHub README preview)
- Marked 2 (macOS)

#Quick Reference

#Shortcuts

markdown
**Bold**        Ctrl/Cmd + B
*Italic*        Ctrl/Cmd + I
[Link](url)      Ctrl/Cmd + K
`Code`         Ctrl/Cmd + `
> Quote        Ctrl/Cmd + Shift + .

#Kesalahan Umum

markdown
**Bold** tanpa spasi setelah **kata**bold
**Bold** dengan spasi setelah **kata** bold
 
- List item tanpa spasi setelah dash
- List item dengan spasi setelah dash
 
#Heading tanpa spasi
# Heading dengan spasi

#Escaping Characters

markdown
\* Asterisk jadi literal
\_ Underscore jadi literal
\# Hash jadi literal
\[ Bracket jadi literal
\\ Backslash jadi literal
 
Atau pake backticks: `*literal*`

Baca Cheat Sheet Lengkap

Login atau daftar akun gratis untuk membaca cheat sheet ini.

LoginDaftar Gratis
Share: