Viewrendered3 Can Now Render PlantUml diagrams

31 views
Skip to first unread message

Thomas Passin

unread,
Jan 1, 2023, 8:44:22 AM1/1/23
to leo-editor
If you use asciidoc and the external asciidoctor processor, the viewrendered3 plugin can now render PlantUml diagrams.  See the section on Asciidoc in the program's docstring to see how to do it.  The docstring will be displayed by Leo's Plugins/viewrendered3/About menu item.

This enhancement is included in the current changeset of the devel branch.

The impetus for this new capability was a request by @wangzhaohe.

jkn

unread,
Jan 2, 2023, 9:15:49 AM1/2/23
to leo-editor
That sounds handy, thanks. Does this need a link to the PlantUML server, or a local one, or...?

Thanks, J^n

Thomas Passin

unread,
Jan 2, 2023, 10:29:51 AM1/2/23
to leo-editor
No, it doesn't need a server link.  That's the nice part.  You just install the asciidoctor-diagram gem, and use the header shown in the docstring.  Of course you need to have installed Ruby and the asciidoctor gem in the first place.  The Ruby people found an alternative engine that they include with the gem and can run directly without a server.  Using the right diagram header gets Ruby to use this alternative.

jkn

unread,
Jan 2, 2023, 12:48:46 PM1/2/23
to leo-editor
Hmm, interesting (in its own right ...)

Thanks
J^n
Reply all
Reply to author
Forward
0 new messages