Markdown Cheatsheet
SC
Syahrun Cega / December 22, 2021
2 min read
Basic Syntax#
Element | Markdown Syntax |
---|---|
Heading | # h1 ## h2 ### h3 |
Bold | **bold text** |
Italic | _italicized text_ |
Blockquote | > blockquote |
Ordered List | 1. First item 2. Second item 3. Third item |
UnorderedList | - First item - Second item - Third item |
Code | `console.log()` |
Horizontal Rule | --- |
Link | [title](https://syahruncega.vercel.app) |
Image |  |
Strikethrough | ~~Hello World~~ |
Extended Syntax#
Element | Markdown Syntax |
---|---|
Table | | Header 1 | Header 2 | | ---------- | ---------- | | Body 1 | Body 2 | |
Fenced Code Block | ```console.log()``` |
Escape Character | \ |
Line Break | <br /> |
Preview#
Heading#
h1
h2#
h3#
h4#
Bold#
Bold text
Italic#
Italicized text
Blockquote#
blockquote
Ordered List#
- First item
- Second item
- Third item
Unordered List#
- First item
- Second item
- Third item
Code#
console.log(Hello world!)
Horizontal Rule#
Link#
Image#
Strikethrough#
Hello World
Fenced Code Block#
hello.js
const hello = 'Hello, world!'
var x = 6
if (x > 5)
console.log(hello)