2024-09-08 10:20:05 +08:00
|
|
|
|
# CrossDown
|
|
|
|
|
自制的markdown,添加了一些自定义的语法
|
2024-09-08 21:24:40 +08:00
|
|
|
|
效果请见[README.html](https://github.com/CrossDark/CrossDown/blob/main/README.html)
|
2024-09-07 19:55:44 +08:00
|
|
|
|
1 基本语法
|
|
|
|
|
1.1 标题
|
|
|
|
|
# 一级标题
|
|
|
|
|
## 二级标题
|
|
|
|
|
### 三级标题
|
|
|
|
|
#### 四级标题
|
|
|
|
|
##### 五级标题
|
|
|
|
|
###### 六级标题
|
|
|
|
|
1.2 样式
|
|
|
|
|
1.2.1 *斜体*
|
|
|
|
|
1.2.2 **粗体**
|
|
|
|
|
1.2.3 ***粗斜体***
|
|
|
|
|
1.2.4 ~下划线~
|
|
|
|
|
1.2.5 ~~删除线~~
|
|
|
|
|
1.2.6 ==高亮==
|
|
|
|
|
1.2.7 [在文本的正上方添加一行小文本]^(主要用于标拼音)
|
|
|
|
|
1.2.8 [在指定的文本里面隐藏一段文本]-(只有鼠标放在上面才会显示隐藏文本)
|
|
|
|
|
1.2.9 分割线
|
|
|
|
|
---
|
|
|
|
|
___
|
|
|
|
|
***
|
|
|
|
|
1.3 链接
|
|
|
|
|
1.3.1 [链接文本](链接地址)
|
|
|
|
|
1.3.2 ![链接图片](链接地址)
|
|
|
|
|
2 变量
|
|
|
|
|
2.1 定义
|
|
|
|
|
{变量名} = 值
|
|
|
|
|
2.2 赋值
|
|
|
|
|
{变量名} {锚点名}
|
|
|
|
|
2.3 添加锚点
|
|
|
|
|
#{锚点名}
|
|
|
|
|
3 代码块
|
|
|
|
|
3.1 `单行`
|
|
|
|
|
3.1.1 LaTex
|
|
|
|
|
`$CO^2$`
|
|
|
|
|
3.2 多行
|
|
|
|
|
3.2.1 YAML
|
|
|
|
|
`
|
|
|
|
|
A:
|
|
|
|
|
1. a
|
|
|
|
|
2. b
|
|
|
|
|
3. c
|
|
|
|
|
B:
|
|
|
|
|
- a
|
|
|
|
|
- b
|
|
|
|
|
- c
|
|
|
|
|
`
|
|
|
|
|
3.2.2 Python
|
|
|
|
|
`python
|
|
|
|
|
print('CrossDown')
|
|
|
|
|
`
|
|
|
|
|
3.2.3 Mermaid
|
|
|
|
|
`mermaid
|
|
|
|
|
graph LR
|
|
|
|
|
A-->B
|
|
|
|
|
A-->C
|
|
|
|
|
B-->D
|
|
|
|
|
C-->D
|
|
|
|
|
`
|
|
|
|
|
4 转义
|
|
|
|
|
\\
|
|
|
|
|
5 引用
|
|
|
|
|
> 渲染引用 --[引用来源]
|
|
|
|
|
6 提纲
|
|
|
|
|
7 注释
|
|
|
|
|
7.1 强注释
|
|
|
|
|
|=
|
|
|
|
|
无论如何都会被移除
|
|
|
|
|
`放在代码块里也没用`
|
|
|
|
|
=|
|
|
|
|
|
7.2 弱注释
|
|
|
|
|
只有在 // 后面才会被移除
|