Closed jonas-klein closed 2 years ago
That is a limitation of the current design. It is not possible to read the settings from a markdown-it plugin, so I have to render the diagram using a javascript call to joplin to get the settings.
With this design you are able to set in the settings the format and rendering server. On the other hand, the WYSIWYG and the pdf are not working.
I will try to cache the diagram URL in the markdown-it so that it works with the PDF export... even if I don't really know how to do it now.
... I will try to find a soution.
Thanks for your feedback
Please, try to update the plugin to v1.5.0 and let me know if you are now able to export in PDF with the diagrams pictures.
All good here with version 1.5.1. Diagrams show fine in exported PDF. 👍
Joplin 2.5.8 (prod, linux) appimage.
yep, works like expected 👍 Thanks! works with Plugin v1.5.1 in Joplin v2.4.12(prod, win32) and v2.5.8(prod, win23)
Thanks for your feedbacks
Unfortunately it doesn't work for me on MacOs BigSur 11.6 (20G165) Joplin 2.5.10 (prod, darwin) PlantUML2 v1.5.1
Exported PDF looks like this
Thanks for letting me know,
unfortunatelly this fix uses some operating system dependent function and I was not able to test it on a mac.
I will try to find a mac to che why it is not working, otherwise I may need your help to debug this issue.
I tested on Mac the plugin and it works.
Since is not possible to execute the plugin Javascript while exporting the PDF, the plugin stores on disk a cache of the diagram that will be then used while creating the PDF. The cache is deleted every time Joplin starts. The cache is created when you open the note for the first time. The cache is located in $TMPDIR/joplin-plantUml2-plugin
Try to follow those steps:
Let me know if you manage to find what is not working.
When i export my Joplin notebook, containing PlantUML diagrams, to PDF, the exported PDF shows "Rendering plantuml diagram...". The Notebook displays the UML diagram correctly in its view. I used the following graph for testing the export, i don't tried other UML types.
Environment
Joplin version: 2.4.12 Platform: Windows OS specifics: Windows 10 Enterprise, Version 21H1, Build 19043.1237
Steps to reproduce
What i've expected
The diagram should be exported to the PDF-file.
edit1: declared plugin version