d2
d2 copied to clipboard
fmt from stdout should always output the formatted diagram
I want to use d2 to format on save in helix but as it outputs nothing if the doc is already formatted it can completely delete the diagram if I am not careful.
oh true
We should just conform to what https://pkg.go.dev/cmd/gofmt does.