argdown icon indicating copy to clipboard operation
argdown copied to clipboard

Nested Argdown via embedding SVGs (arbitrarily deep)

Open Coda-Coda opened this issue 2 years ago • 1 comments

Hi,

I had this idea of nesting argdown arguments by including the generated SVG in relevant nodes using images (https://argdown.org/guide/adding-images.html, https://github.com/christianvoigt/argdown/issues/129). (Then repeating this process with argdown diagrams within argdown diagrams within argdown diagrams etc.)

However, after experimenting (exporting SVGs via VSCode and via the Command Line @argdown/image-export) neither successfully enable arbitrary depth nesting of argdown diagrams as SVG images.

Would it be possible to fix this?

I imagined it as useful for large complex arguments where the viewer could zoom in to aspects they are more interested in.

Thanks for the awesome work you do with Argdown!

Coda-Coda avatar Jul 25 '21 05:07 Coda-Coda

A zoomable interface is a cool idea (a few years ago we had a similar concept that sadly was never implemented). I am not sure what the issue is, can you provide some details? For example, can you successfully use other kinds of svg images in Argdown that also contain text? I think this is a hard one to fix as the image support was implemented in Viz.js by the original author of that package who is no longer maintaining it (I am now using a fork that is maintained by someone else).

As a workaround I would recommend to export your Argdown files separately and use yEd to manually insert one graph in another. The downside is that you can no longer edit the file in Argdown, once you have changed it in yEd.

You can also use "closed" and "open" groups in Argdown to visualize complex debates (hiding parts of a debate in a closed group). It would be nice if the web component would support closing and opening groups by mouse click. That is a feature I would like to implement in the future if I find the time for it.

christianvoigt avatar Jul 27 '21 13:07 christianvoigt