little-bee-client

markdown

Why

为了介绍“蜂博客”内容的网页渲染效果,这篇博文详细列举了“蜂博客”相关语法的写法。

What

“蜂工地”除了支持Markdown语法的渲染以外,还支持代码高亮数学公式以及标题链接等。本文会介绍以下格式的写法与渲染效果:

How

Markdown语法

引用

> 这是一句引用。

文本格式

*斜体*,**加粗**,***加粗并斜体***

表格

| Tables   |      Are      |  Cool |
|----------|:-------------:|------:|
| col 1 is |  left-aligned | $1600 |
| col 2 is |    centered   |   $12 |
| col 3 is | right-aligned |    $1 |
Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1

代码高亮

C++代码

// cpp
void main() {
    std::cout << "Hello" << std::endl;
    return;
}

Javascript代码

// js
console.log('Hello');

Python代码

# python
print('Hello')

Bash命令行

ls

Emoji表情

数学公式

$a^2 + b^2 = c^2$

图片

静态图片(png, jpg)

![image](/posts/2/image-sample.jpg)

image

动态图片(gif)

![little-bee](/little-bee-client/posts/2/little-bee.gif)

little-bee

标题链接

# 标题1
## 标题2
### 标题3
#### 标题4