markdown-preview-enhanced icon indicating copy to clipboard operation
markdown-preview-enhanced copied to clipboard

{.plantuml caption="PlantUML"} 无法绘制

Open ws0424 opened this issue 2 years ago • 1 comments

在vscode插件中使用plantuml则正常绘制使用{.plantuml } 则无法绘制 求解决方案 image

片段为

@startuml
skinparam dpi 100
start
if (Graphviz 已安装?) then (yes)
 :处理所有\n绘制任务;
else (no)
 :仅处理
 __时序图__ 和 __活动__ 图;
endif
stop
@enduml

ws0424 avatar Apr 24 '22 07:04 ws0424

I think we have the same issue. Using the shorthand code for syntax highlighting I can get my code blocks to render in MPE and in a pandoc generated pdf.

```java
public static void main(String args) {
     System.out.println("Hello Java!");
}
```

Produces

public static void main(String args) {
    System.out.println("Hello Java!");
}

However, to use the full features offered by pandoc, I lose highlighting in MPE

```{#lst:hellojava .java caption="Hello World in Java"}
public static void main(String args) {
    System.out.println("Hello Java!");
}
```

Produces

public static void main(String args) {
    System.out.println("Hello Java!");
}

I've tried varying the pandoc output format (pdf, latex), and pdf engine (pdflatex, lualatex, xelatex) but it makes no difference. Also tried

```java {.java}
public static void main(String args) {
    System.out.println("Hello Java!");
}
```

Produces (but doesn't work in pandoc)

public static void main(String args) {
    System.out.println("Hello Java!");
}

Unfortunately this doesn't work either.

a2k42 avatar May 10 '22 13:05 a2k42