Closed pleshevskiy closed 1 year ago
it does not, sorry for the lack of clarity. i have it in the next release of d2-docs to document that:
we'll add support for it probably in the release after
Also, it seems near
only "works" with top-level shapes. Otherwise, it gives a "failed to recompile" error and a panic dump, for example:
dog.flea
comment: |md
parasite
| {
near: dog.flea
}
documented
Seems like
near
keyword in text block does not work. And we have to reorder block manually, but reordering doesn't work too in complex examples. See below.Simple
If we want to render text near to a block or group
Expected
Actual
Workaround
We can reorder the text block and now it works as expected without
near
keyword.Complex
if we want to render text near to a connected block or group
Expected
Actual
Misc
Tested on d2 versions
0.0.13
and lateste6c7d066164040098d294c00779a2248c402c864