Open ws0424 opened 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.
在vscode插件中使用
plantuml则正常绘制使用
{.plantuml } 则无法绘制 求解决方案片段为