From 3fee69a556ffce0e7b8822060659dcfed2a6296d Mon Sep 17 00:00:00 2001 From: Bernard Xie Date: Thu, 17 Nov 2022 14:45:50 -0800 Subject: [PATCH] use postprocessed svg --- cmd/d2/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/d2/main.go b/cmd/d2/main.go index ae4d3f421..b21467b9e 100644 --- a/cmd/d2/main.go +++ b/cmd/d2/main.go @@ -186,7 +186,7 @@ func compile(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, input } if filepath.Ext(outputPath) == ".png" { - outputImage, err = png.ExportPNG(ms, page, svg) + outputImage, err = png.ExportPNG(ms, page, outputImage) if err != nil { return nil, err }