Markdown 和快捷键全覆盖
💡 Tips:语雀支持全功能 markdown 语法,可以点击文档编辑页右下角小键盘查看全部支持的语法和快捷键。
- 支持导入导出
markdown
文件。 - 支持自动识别粘贴的
markdown
格式内容转换为富文本。
行内代码
💡 Tips:可通过 markdown 语法(
+ `code` +
+空格
)或者快捷键ctrl/cmd
+E
快速插入行内代码。
在文本中使用行内代码
,可以顺畅地显示代码变量名。
代码块
💡 Tips:输入
/代码块
或点击上方工具栏点击上方工具栏![image.png](https://img-blog.csdnimg.cn/img_convert/9ceecff4b37ac64f1e63179862a01f27.png#averageHue=#b1e5c6&clientId=u8726e0a6-b55e-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=22&id=EuV2b&margin=[object Object]&name=image.png&originHeight=22&originWidth=21&originalType=binary&ratio=1&rotation=0&showTitle=false&size=352&status=done&style=none&taskId=u6adeff07-b08f-4f2a-9a78-84bebd06c32&title=&width=21),选择「代码块」、插入代码卡片。
代码块同时支持多种颜色主题:
export default class QuickSort extends Sort {
sort(originalArray) {
const array = [...originalArray];
if (array.length <= 1) {
return array;
}
// Init left and right arrays.
const leftArray = [];
const rightArray = [];
// Take the first element of array as a pivot.
const pivotElement = array.shift();
const centerArray = [pivotElement];
// Split all array elements between left, center and right arrays.
while (array.length) {
const currentElement = array.shift();
// Call visiting callback.
this.callbacks.visitingCallback(currentElement);
if (this.comparator.equal(currentElement, pivotElement)) {
centerArray.push(currentElement);
} else if (this.comparator.lessThan(currentElement, pivotElement)) {
leftArray.push(currentElement);
} else {
rightArray.push(currentElement);
}
}
// Sort left and right arrays.
const leftArraySorted = this.sort(leftArray);
const rightArraySorted = this.sort(rightArray);
return leftArraySorted.concat(centerArray, rightArraySorted);
}
}
export default class QuickSort extends Sort {
sort(originalArray) {
const array = [...originalArray];
if (array.length <= 1) {
return array;
}
// Init left and right arrays.
const leftArray = [];
const rightArray = [];
// Take the first element of array as a pivot.
const pivotElement = array.shift();
const centerArray = [pivotElement];
// Split all array elements between left, center and right arrays.
while (array.length) {
const currentElement = array.shift();
// Call visiting callback.
this.callbacks.visitingCallback(currentElement);
if (this.comparator.equal(currentElement, pivotElement)) {
centerArray.push(currentElement);
} else if (this.comparator.lessThan(currentElement, pivotElement)) {
leftArray.push(currentElement);
} else {
rightArray.push(currentElement);
}
}
// Sort left and right arrays.
const leftArraySorted = this.sort(leftArray);
const rightArraySorted = this.sort(rightArray);
return leftArraySorted.concat(centerArray, rightArraySorted);
}
}
export default class QuickSort extends Sort {
sort(originalArray) {
const array = [...originalArray];
if (array.length <= 1) {
return array;
}
// Init left and right arrays.
const leftArray = [];
const rightArray = [];
// Take the first element of array as a pivot.
const pivotElement = array.shift();
const centerArray = [pivotElement];
// Split all array elements between left, center and right arrays.
while (array.length) {
const currentElement = array.shift();
// Call visiting callback.
this.callbacks.visitingCallback(currentElement);
if (this.comparator.equal(currentElement, pivotElement)) {
centerArray.push(currentElement);
} else if (this.comparator.lessThan(currentElement, pivotElement)) {
leftArray.push(currentElement);
} else {
rightArray.push(currentElement);
}
}
// Sort left and right arrays.
const leftArraySorted = this.sort(leftArray);
const rightArraySorted = this.sort(rightArray);
return leftArraySorted.concat(centerArray, rightArraySorted);
}
}
数学公式
💡 Tips:输入
/公式
或点击上方工具栏点击上方工具栏![image.png](https://img-blog.csdnimg.cn/img_convert/589d78179b3c31d116ed13bddff13aaf.png#averageHue=#b1e5c6&clientId=u8726e0a6-b55e-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=22&id=Y49Cp&margin=[object Object]&name=image.png&originHeight=22&originWidth=21&originalType=binary&ratio=1&rotation=0&showTitle=false&size=352&status=done&style=none&taskId=u6adeff07-b08f-4f2a-9a78-84bebd06c32&title=&width=21),选择「公式」、插入公式卡片。
行内嵌套
∑
i
=
1
100
i
=
5050
\sum_{i=1}^{100}i = 5050
∑i=1100i=5050
公式支持行内嵌套:
c
=
±
a
2
+
b
2
c = \pm\sqrt{a^2 + b^2}
c=±a2+b2,也支持块级嵌入。
f
(
x
)
=
∫
−
∞
∞
f
^
ξ
e
2
π
i
ξ
x
d
ξ
f(x)=\int_{-\infty}^\infty\widehat f\xi\,e^{2\pi i\xi x}\,d\xi
f(x)=∫−∞∞f
ξe2πiξxdξ
画板
💡 Tips:输入
/画板
或点击上方工具栏![image.png](https://img-blog.csdnimg.cn/img_convert/519b15fe8be0bd91c8cb58b1ac9437b4.png#averageHue=#b1e5c6&clientId=u8726e0a6-b55e-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=22&id=J4UvR&margin=[object Object]&name=image.png&originHeight=22&originWidth=21&originalType=binary&ratio=1&rotation=0&showTitle=false&size=352&status=done&style=none&taskId=u6adeff07-b08f-4f2a-9a78-84bebd06c32&title=&width=21),选择「画板」、绘制流程图、架构图等各种图形。
文本绘图
💡 Tips:输入
/文本绘图
点击上方工具栏![image.png](https://img-blog.csdnimg.cn/img_convert/f2295ddb545e048ed2aa71dae57b8bbd.png#averageHue=#b1e5c6&clientId=u8726e0a6-b55e-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=22&id=z0jSW&margin=[object Object]&name=image.png&originHeight=22&originWidth=21&originalType=binary&ratio=1&rotation=0&showTitle=false&size=352&status=done&style=none&taskId=u6adeff07-b08f-4f2a-9a78-84bebd06c32&title=&width=21),选择「文本绘图」、插入文本绘图卡片。
支持 plantuml、mermaid 等多种格式,点击预览
可看到图形。具体代码样式见说明文档。
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-t443Vtll-1670602369640)(https://intranetproxy.alipay.com/skylark/lark/__puml/b11b6192390c95750c4b71c2580ff529.svg#lake_card_v2=eyJ0eXBlIjoicHVtbCIsImNvZGUiOiJAc3RhcnR1bWxcblxuYXV0b251bWJlclxuXG5hY3RvciBcIueUqOaIt1wiIGFzIFVzZXJcbnBhcnRpY2lwYW50IFwi5rWP6KeI5ZmoXCIgYXMgQnJvd3NlclxucGFydGljaXBhbnQgXCLmnI3liqHnq69cIiBhcyBTZXJ2ZXIgI29yYW5nZVxuXG5hY3RpdmF0ZSBVc2VyXG5cblVzZXIgLT4gQnJvd3Nlcjog6L6T5YWlIFVSTFxuYWN0aXZhdGUgQnJvd3NlclxuXG5Ccm93c2VyIC0-IFNlcnZlcjog6K-35rGC5pyN5Yqh5ZmoXG5hY3RpdmF0ZSBTZXJ2ZXJcblxuU2VydmVyIC0-IFNlcnZlcjog5qih5p2_5riy5p-TXG5ub3RlIHJpZ2h0IG9mIFNlcnZlcjog6L-Z5piv5LiA5Liq5rOo6YeKXG5cblNlcnZlciAtPiBCcm93c2VyOiDov5Tlm54gSFRNTFxuZGVhY3RpdmF0ZSBTZXJ2ZXJcblxuQnJvd3NlciAtLT4gVXNlclxuXG5AZW5kdW1sIiwidXJsIjoiaHR0cHM6Ly9pbnRyYW5ldHByb3h5LmFsaXBheS5jb20vc2t5bGFyay9sYXJrL19fcHVtbC9iMTFiNjE5MjM5MGM5NTc1MGM0YjcxYzI1ODBmZjUyOS5zdmciLCJpZCI6Imd5WlBnIiwibWFyZ2luIjp7InRvcCI6dHJ1ZSwiYm90dG9tIjp0cnVlfSwiY2FyZCI6ImRpYWdyYW0ifQ==)][外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-jHg1QhPR-1670602369640)(https://lark-assets-test-aliyun.oss-cn-hangzhou.aliyuncs.com/yuque/__mermaid_v3/743010bfb6962498a4b9a485b60a8305.svg#lake_card_v2=eyJ0eXBlIjoibWVybWFpZCIsImNvZGUiOiJzZXF1ZW5jZURpYWdyYW1cbiAgICBwYXJ0aWNpcGFudCBKb2huXG4gICAgcGFydGljaXBhbnQgQWxpY2VcbiAgICBBbGljZS0-PkpvaG46IEhlbGxvIEpvaG4sIGhvdyBhcmUgeW91P1xuICAgIEpvaG4tLT4-QWxpY2U6IEdyZWF0ISIsInVybCI6Imh0dHBzOi8vbGFyay1hc3NldHMtdGVzdC1hbGl5dW4ub3NzLWNuLWhhbmd6aG91LmFsaXl1bmNzLmNvbS95dXF1ZS9fX21lcm1haWRfdjMvNzQzMDEwYmZiNjk2MjQ5OGE0YjlhNDg1YjYwYTgzMDUuc3ZnIiwiaWQiOiJLQXg5diIsIm1hcmdpbiI6eyJ0b3AiOnRydWUsImJvdHRvbSI6dHJ1ZX0sImNhcmQiOiJkaWFncmFtIn0=)]
![image.png](https://img-blog.csdnimg.cn/img_convert/fbb7dd63684822e3a9a6d987667cb0c4.png#averageHue=#f8f8f8&clientId=u0388046a-be17-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=481&id=u318ff9ae&margin=[object Object]&name=image.png&originHeight=721&originWidth=1279&originalType=binary&ratio=1&rotation=0&showTitle=false&size=137087&status=done&style=none&taskId=ud18168cb-b43a-4578-9e7b-929222d6469&title=&width=852.6666666666666)