shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.48k stars 173 forks source link

[BUG] 无法使用 ditaa 渲染 #1961

Open inkbottle-9 opened 8 months ago

inkbottle-9 commented 8 months ago

Describe the bug 无法使用 ditaa 渲染, 另外 plantuml 中的 ditaa 也无法使用

环境

代码

```ditaa {cmd=true args=["-E"]}
+--------+   +-------+    +-------+
|        | --+ ditaa +--> |       |
|  Text  |   +-------+    |diagram|
|Document|   |!magic!|    |       |
|     {d}|   |       |    |       |
+---+----+   +-------+    +-------+
    :                         ^
    |       Lots of work      |
    +-------------------------+


**Screenshots**
![image](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/assets/55432702/e0a88660-6aa0-41be-9fbd-6746f3bb4c9d)
inkbottle-9 commented 8 months ago

我发现如果加一句 kroki=true

```ditaa {cmd=true args=["-E"] kroki=true}
+--------+   +-------+    +-------+
|        | --+ ditaa +--> |       |
|  Text  |   +-------+    |diagram|
|Document|   |!magic!|    |       |
|     {d}|   |       |    |       |
+---+----+   +-------+    +-------+
    :                         ^
    |       Lots of work      |
    +-------------------------+

![image](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/assets/55432702/0d7f1516-5adf-45ea-aa82-a97fe7b2eeb5)

啊, 这样能用了, 算不算是一种 "曲线救国"

不过开启 kroki 的话怎么把 "-E" 参数传进去?