markdown-preview-enhanced
markdown-preview-enhanced copied to clipboard
{.plantuml caption="PlantUML"} 无法绘制
在vscode插件中使用plantuml则正常绘制使用
{.plantuml } 则无法绘制 求解决方案
片段为
@startuml
skinparam dpi 100
start
if (Graphviz 已安装?) then (yes)
:处理所有\n绘制任务;
else (no)
:仅处理
__时序图__ 和 __活动__ 图;
endif
stop
@enduml
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.