We believe that writing is about content, about what you want to say – not about fancy formatting.
我们坚信写作写的是内容,所思所想,而不是花样格式。— Ulysses for Mac
用 # 号来创建标题。标题从 # 开始,# 的数量表示标题的级别。
# 一级标题
## 二级标题
### 三级标题
#### 四级标题以上代码将渲染出一组层次分明的标题,使你的内容井井有条。
Markdown 中的段落就是一行接一行的文本。要创建新段落,只需在两行文本之间空一行。
Command + B,如 **粗体** 或 __粗体__。 Command + I,如 *斜体* 或 _斜体_。Command + D,如 ~~删除线~~。+ 包裹文字或 Command + U,如 ++下划线++。这些简单的标记可以让你的内容更有层次感和重点突出。另外 Docs+ 还提供额外的样式设置,快捷键:Command + J
=white:theme:12 白色文字,主题色背景,12px 大小的文字=
白色文字,主题色背景,12 px 大小的文字
=white:black:12 白色文字,黑色背景,12px 大小的文字=
白色文字,黑色背景,12 px 大小的文字
^ 包裹上标并可通过 : 指定颜色。Command + Option + PDocs^red:+^ : Docs+ 。Docs^theme:+^:跟随主题色。Docs+~ 包裹上标并可通过 : 指定颜色。Command + Option + BH~red:2~O^ : H2O 。H~theme:2~O^:跟随主题色。H2O^。-、* 或 + 加空格开始一行。Command + Option + U1.、2.)开始一行。Command + Option + O在列表中嵌套其他内容?只需缩进即可实现嵌套效果。
- 无序列表项 1
1. 嵌套有序列表项 1
2. 嵌套有序列表项 2
- 无序列表项 2
1. 有序列表项 1
2. 有序列表项 2Command + K[访问 Docs^red:+^ ](https://github.com/iniself/md)。访问 Docs+ 。[[显示文本](链接地址)]。Command + Option + K!。Docs+ 支持定义图片长宽(px | %)和填充方式(contain | cover | fill ...):
<,> 语法可以创建横屏滑动幻灯片,支持微信公众号平台。建议使用相似尺寸的图片以获得最佳显示效果。使用 > 来创建引用,只需在文本前面加上它。多层引用?在前一层 > 后再加一个就行。
> 这是一个引用
>
> > 这是一个嵌套引用这是一个引用
这是一个嵌套引用
这让引用更加富有层次感。
`code` :code `。> 代码块语法
```js
console.log("Hello, You!");
``` > 代码块展示
console.log("Hello, You!");en,如:```en
Digital businesses will not long survive processes that rely on ++individual heroes++. To satisfy the demands of, say, a typical user of an app, mobile transactions must be reliable and seamless. This means that, to play in the digital economy, companies need to replace their dysfunctional systems and processes with an operational backbone.
```Digital businesses will not long survive processes that rely on individual heroes. To satisfy the demands of, say, a typical user of an app, mobile transactions must be reliable and seamless. This means that, to play in the digital economy, companies need to replace their dysfunctional systems and processes with an operational backbone.
center,如:```center
=default:: *居中文字*=
```居中文字
Docs+ 支持 Admonition 语法, Command + Option + A。包括如下提示类型:abstract/attention/bug/caution/danger/error/example/failure/hint/info/note/question/quote/success/tip/warning
!!! bug 越界访问,索引 3 不存在
```rust
fn main() {
let nums = vec![1, 2, 3];
println!("{}", nums[3]);
}
```
!!!越界访问,索引 3 不存在
fn main() {
let nums = vec![1, 2, 3];
println!("{}", nums[3]);
}
用三个或更多的 -、* 或 _ 来创建分割线。
不想渲染出来的 markdown 内容可以通过 <!-- --> 进行注释。Command + /
Markdown 最简单的表格语法是,用 | 和 - 分隔单元格和表头。通过左上方点击「编辑->插入表格」,可快速生成表格。
| 成员 | 性别 | 年龄 |
| --- | --- | --- |
|张三 | 男 | 28 |
|李四 | 男 | 33 |
|王五 | 女 | 21 || 成员 | 性别 | 年龄 |
|---|---|---|
| 张三 | 男 | 28 |
| 李四 | 男 | 33 |
| 王五 | 女 | 21 |
另外 Docs+ 还提供了更高级的表格用法:
| 成都 | 绵阳 | 自贡 |
|---------|---------|---------|
|四川省 |||| 成都 | 绵阳 | 自贡 |
|---|---|---|
| 四川省 | ||
| 省 | 城市 |
|--------------|---------|
| 四川 | 成都 |
| ^| 绵阳 |
| ^| 自贡 || 省 | 城市 |
|---|---|
| 四川 | 成都 |
| 绵阳 | |
| 自贡 |
| 这个表头合并 || 表头 A |
|了两行和两列^|| 表头 B |
|-------------|------------|----------|
| 单元格 A |单元格 B |单元格 C || 这个表头合并 了两行和两列 | 表头 A | |
|---|---|---|
| 表头 B | ||
| 单元格 A | 单元格 B | 单元格 C |
|列一|列二|列三|
|--10%-----|-- 40% ---|:---50%-----|
|10% 宽度|40%宽度|50%宽度|| 列一 | 列二 | 列三 |
|---|---|---|
| 10% 宽度 | 40%宽度 | 50%宽度 |
|cols | |
| --- | --- |
|⭐️⭐️⭐️⭐️⭐️|主数据管理|
|⭐️⭐️|元数据管理|
|⭐️⭐️⭐️⭐|数据标准建设|
|⭐️⭐️⭐️⭐️⭐️|数据质量监控|| ⭐️⭐️⭐️⭐️⭐️ | 主数据管理 |
| ⭐️⭐️ | 元数据管理 |
| ⭐️⭐️⭐️⭐ | 数据标准建设 |
| ⭐️⭐️⭐️⭐️⭐️ | 数据质量监控 |
Markdown 允许嵌入 LaTeX 语法展示数学公式:
$ 包裹公式,如 $E = mc^2$ 。$$ 包裹公式,如: $$
\begin{aligned}
d_{i, j} &\leftarrow d_{i, j} + 1 \\
d_{i, y + 1} &\leftarrow d_{i, y + 1} - 1 \\
d_{x + 1, j} &\leftarrow d_{x + 1, j} - 1 \\
d_{x + 1, y + 1} &\leftarrow d_{x + 1, y + 1} + 1
\end{aligned}
$$$$
\chi^2 = \sum \frac{(O - E)^2}{E}
$$$$
\chi^2 = \sum \frac{(|O - E| - 0.5)^2}{E}
$$Mermaid 是强大的可视化工具,可以在 Markdown 中创建流程图、时序图等。Doc+ 支持设置图形大小和标题。
```mermaid 70% 横向流程图
graph LR
A[GraphCommand] --> B[update]
A --> C[goto]
A --> D[send]
B --> B1[更新状态]
C --> C1[流程控制]
D --> D1[消息传递]
``````mermaid 50% 纵向流程图
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
``````mermaid 40% 饼图
pie
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5
```更多用法,参见:Mermaid User Guide。
淘汰一切以打印为目的的文档格式。内容和样式分离才是面向 AI 时代正确的写作方式。加我微信 Aui_Team 聊天。
