qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.09k stars 156 forks source link

Preview often failed when using Chinese characters and AsciiMath simultaneously #296

Open wanqiuchansheng opened 4 years ago

wanqiuchansheng commented 4 years ago

When I use Chinese characters and AsciiMath simultaneously, plantuml preview often fails but export is ok.

When codes are as follows:

@startuml
:<math>int_0^1f(x)dx</math>;
:<math>x^2+y_1+z_12^34</math>;
note right
测
end note
@enduml

or

@startuml
:<math>int_0^1f(x)dx</math>;
:<math>x^2+y_1+z_12^34</math>;
note right
试
end note
@enduml

preview failed. image

However, if the codes are:

@startuml
:<math>int_0^1f(x)dx</math>;
:<math>x^2+y_1+z_12^34</math>;
note right
测试
end note
@enduml

The preview goes well !!! image

qjebbs commented 4 years ago

With render PlantUMLServer, I didn't reproduce this. If you use Local render, try to update theplantuml.jar and its dependencies to see if it works