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.41k stars 170 forks source link

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

Open ws0424 opened 2 years ago

ws0424 commented 2 years ago

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

image

片段为

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

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

```java
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

```{#lst:hellojava .java caption="Hello World in Java"}
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)

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

Unfortunately this doesn't work either.