Markdown usage
Published: 2023-10-12 11:35 AM
Updated: 2023-10-12 11:54 PM
Headings
HTML h1 ~ h6
# Heading h1
### Heading h2
#### Heading h3
##### Heading h4
###### Heading h5
####### Heading h6
Heading h1
Heading h2
Heading h3
Heading h4
Heading h5
Heading h6
Line Breaks
two or more spaces or, new line tag, br
line 1 <space><space><space>
line 2 <br />
line 3
line 1
line 2
line 3
Emphasis
*italic* or italic
**bold** or __bold__
**italic bold_**
~~strikethrough~~
<u>underline</u>
italic
italic
bold
bold
italic bold
strikethrough
Blockquotes
HTML blockquote , use > symbol
> blockquote
>> blockquote
>>> blockquote
blockquote
blockquote
blockquote
Horizontal rules
three or more asterisks (***), dashes (---), underscores (___), or hr tag
***
---
___
<hr />
List
HTML ol, ul
- unordered list
- next
- next
+ unordered list
+ next
+ next
* unordered list
* next
* next
1. ordered list
2. next
3. next
Checkbox
- [x] checked, - [ ] unchecked
- [x] breathing
- [ ] exercise
- breathing
- exercise
Links
[link title](url)
[Home page](https://homebakedcode.com)
Images
![image desc](image url)
![image](/assets/images/app_icon.png)
Code
HTNL code tag, use backticks
Hello `world!`
Hello world!
Code block
use (```), can specify the language type for syntax highlight, e.g. html, javascript, js, css etc
Hello `world!`
Hello world!
```js
import { json } from '@sveltejs/kit';
export function GET() {
return json({ id: 1, title: 'hello world' });
}
import { json } from '@sveltejs/kit';
export function GET() {
return json({ id: 1, title: 'hello world' });
}