gpt4 book ai didi

visual-studio-code - 如何在美人鱼中输入多个空格?

转载 作者:行者123 更新时间:2023-12-05 02:58:02 25 4
gpt4 key购买 nike

我正在使用 VS Code 编辑我的 markdown 文件,并且需要制作流程图(图形)来显示工作流程。

问题是 VS Code 无法正确显示长文本标题,最后几部分将被截断,如下所示:

```mermaid
graph LR

azzzzzzzz-->b
```

enter image description here

所以我想简单地在文本后添加空格。但是,我通过互联网搜索,并没有找到输入多个空格的方法。

```mermaid
graph LR

a[zzz z zzzz ]-->b
```

enter image description here

无论我怎么尝试,实际标题只会显示 1 个空格。因此,如果有人可以帮助解决 VS Code 的截断问题或教我如何输入多个空格。

我整天都在为它苦苦挣扎,请帮忙!非常感谢!

最佳答案

根据文档 Entity codes to escape characters你必须使用以下内容:

It is possible to escape characters using the syntax examplified here.

graph LR
A["A double quote:#quot;"] -->B["A dec char:#9829;"]

在您的示例中,它可能是以下内容:

```mermaid
graph LR

a["zzz #nbsp; z #nbsp; zzzz #nbsp; "]-->b
```

关于visual-studio-code - 如何在美人鱼中输入多个空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59385232/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com