You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common use case for D2 is inline usage within Markdown. As we don't have real files here and only a single block of text, we can't use imports at all:
```d2
# not a real file, no imports :(
```
Allow us to define hidden nodes, that will be considered when resolving imports. Previously, we had to do:
This would allow us to actually use imports within a single file and it would use the same syntax as the already existing imports. But wait, why would you even want that? Why import, if everything is in the same file already? Because imports allow to reuse a defined diagram part multiple times.
The text was updated successfully, but these errors were encountered:
A common use case for D2 is inline usage within Markdown. As we don't have real files here and only a single block of text, we can't use imports at all:
Allow us to define hidden nodes, that will be considered when resolving imports. Previously, we had to do:
and
The following should be equivalent:
This would allow us to actually use imports within a single file and it would use the same syntax as the already existing imports. But wait, why would you even want that? Why import, if everything is in the same file already? Because imports allow to reuse a defined diagram part multiple times.
The text was updated successfully, but these errors were encountered: