I'm not too sure how it works exactly, but drawio's VScode extension recognises the .drawio.svg (and drawio.png) double extension, which is very convenient when embedding the image (recognised as such) in a markdown document in visual editor mode. Because it's also recognised by the drawio extension as a valid scene, it can be edited side-by-side in real time (cf screenshot).
Now, drawio is XML-based, so perhaps this dual-purpose is more straight-forward to achieve than with the JSON-based tldr format, but I imagine the logic would be pretty similar (presumably, embedding the original scene file in the svg/png).
Hi, closing this as we won't be adding new features to this version of tldraw. Check https://github.com/tldraw/tldraw for the latest! This issue has been discussed there as well.
I'm not too sure how it works exactly, but drawio's VScode extension recognises the
.drawio.svg
(anddrawio.png
) double extension, which is very convenient when embedding the image (recognised as such) in a markdown document in visual editor mode. Because it's also recognised by the drawio extension as a valid scene, it can be edited side-by-side in real time (cf screenshot).Now, drawio is XML-based, so perhaps this dual-purpose is more straight-forward to achieve than with the JSON-based tldr format, but I imagine the logic would be pretty similar (presumably, embedding the original scene file in the svg/png).