mokeyish / obsidian-enhancing-export

This is an enhancing export plugin base on Pandoc for Obsidian (https://obsidian.md/ ). It's allow you to export to formats like Markdown、Markdown (Hugo https://gohugo.io/ )、Html、docx、Latex etc.
MIT License
328 stars 20 forks source link

render plantuml to image #37

Open imatrixme opened 1 year ago

imatrixme commented 1 year ago

all formats contains plantuml can't be rendered to images. please help, thanks

mokeyish commented 1 year ago

It seems not support plantuml.

https://github.com/pandoc/lua-filters/tree/master/diagram-generator#plantuml

stratosgear commented 1 year ago

Well, you have to jump some hoops but I got it working:

Assuming you have everything installed correctly, then in the Export Setting of the Obsidian plugin, edit the Extra arguments to something like:

--lua-filter=/home/username/.local/share/pandoc/filters/diagram-generator.lua --metadata=plantumlPath:"/usr/share/java/plantuml/plantuml.jar"

and it works!!!

I already said, it is kinda involved, but it does work!

mokeyish commented 1 year ago

@stratosgear A better solution: https://github.com/pandoc-ext/diagram , but I'm not tried it.