Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Dec 13, 2024
1 parent 063c533 commit 6742e16
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/assets/example/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ $$

Mermaid 是强大的可视化工具,可以在 Markdown 中创建流程图、时序图等。

```mermaid
graph LR
A[GraphCommand] --> B[update]
A --> C[goto]
A --> D[send]
B --> B1[更新状态]
C --> C1[流程控制]
D --> D1[消息传递]
```

```mermaid
graph TD;
A-->B;
Expand Down
4 changes: 2 additions & 2 deletions src/components/CodemirrorEditor/EditorHeader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ function copy() {
section.innerHTML = parent.innerHTML
const grand = parent.parentElement!
grand.innerHTML = `` // 清空父元素的内容
grand.appendChild(section) // 将新的 section 添加到父元素
grand.innerHTML = ``
grand.appendChild(section)
})
window.getSelection()!.removeAllRanges()
Expand Down

0 comments on commit 6742e16

Please sign in to comment.