marc0l92/joplin-plugin-plantUML

The math formula can not render

Closed this issue · 3 comments

This plug is wonderful, thank you for this awesome work. I meet a problem, the latex or math can not render, such as

@startuml
skinparam handwritten true
:<math>int_0^1f(x)dx</math>;
:<math>x^2+y_1+z_12^34</math>;
note right
Try also
<math>d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h</math>
<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>
end note
@enduml

just show a normal text, Thanks!

I find that the plantuml in VSCode have the same problem, however, it provides a optional that one can select the plantuml.jar file to render the picture.

The plantuml server is able to parse math functions only if it is working in PNG mode.

In Joplin select the PNG mode from the plugin settings:

image

Then you will be able to render math functions:

image

Please let me know if you are able to solve the issue :)

Thank you, I got it.