How to insert graphviz diagrams in a table?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to insert graphviz diagrams in a table?

siddjain
Hello,

How can I insert graphviz diagrams inside a table in asciidoc?

Sid
Reply | Threaded
Open this post in threaded view
|

Re: How to insert graphviz diagrams in a table?

David Jencks
Are you asking primarily about graphviz or the table?

Graphviz support depends on which asciidoctor you are using.  For ruby use asciidoctor-diagram.  For javascript there’s asciidoctor-plantuml and asciidoctor.kroki.

I’ve only used asciidoctor-plantuml and I don’t recall if I’ve put a diagram in a table.  I’d expect that if you labeled the column or cell ‘a’ to allow embedded asciidoc cell content you could use either the plantuml macro or block macro.

Hope this helps… please be more specific if you have more questions.

David Jencks

On Mar 17, 2020, at 1:32 PM, siddjain [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Hello,

How can I insert graphviz diagrams inside a table in asciidoc?

Sid


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/How-to-insert-graphviz-diagrams-in-a-table-tp7766.html
To start a new topic under Asciidoctor :: Discussion, [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: How to insert graphviz diagrams in a table?

mojavelinux
Administrator
In reply to this post by siddjain
I think the correct answer to this is to use an AsciiDoc table cell. An AsciiDoc table cell is essentially an embedded AsciiDoc document, and can thus contain all the blocks and macros of a normal document.

a|
block content goes here

-Dan

On Tue, Mar 17, 2020 at 2:32 PM siddjain [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello,

How can I insert graphviz diagrams inside a table in asciidoc?

Sid


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/How-to-insert-graphviz-diagrams-in-a-table-tp7766.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: How to insert graphviz diagrams in a table?

siddjain
Thanks. Got it!