terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
17.5k stars 430 forks source link

Incorrect Linking with multiple d2 files #2104

Closed rutvora closed 1 month ago

rutvora commented 2 months ago

main.d2

...@test

test.d2

elem: elem {
  link: https://google.com
}

I am running this as d2 -w -p 8080 main.d2

As you see in the bottom left of this image, the link is (incorrect) localhost:8080/test1.svg instead of (correct) https://google.com EDIT: Note that my mouse pointer is hovering over elem (which is not shown in the screenshot) image

alixander commented 1 month ago

ty @rutvora