marc0l92 / joplin-plugin-plantUML

Render PlantUML diagram inside your Joplin notes.
MIT License
47 stars 8 forks source link

The math formula can not render #3

Closed hanqing0521 closed 2 years ago

hanqing0521 commented 2 years ago

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!

hanqing0521 commented 2 years ago

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.

marc0l92 commented 2 years ago

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 :)

hanqing0521 commented 2 years ago

Thank you, I got it.