d2-vim icon indicating copy to clipboard operation
d2-vim copied to clipboard

D2Preview output to svg instead of ascii diagram

Open pirey opened this issue 5 months ago • 1 comments

Hello, When I run :D2Preview it generates an svg file instead of ascii diagram.

Image

When I try to run d2 command manually, it also generate svg file. I could not find ascii diagram mentioned in the manpage, is the feature removed?

I installed the cli using recommended install script from the documentation page.

pirey avatar Aug 07 '25 03:08 pirey

Right, the ASCII feature is in 0.7.1, which is yet to be released. There should've been a warning that that's the case though, weird that it didn't show up. Anyway, I aim to release it in ~week, sorry for the confusion

alixander avatar Aug 07 '25 15:08 alixander