draw.io implements own solution vor Notion
Hey man,
thx for your work here. Clever solution.
Draw.io implemented a solution for Notion, wich works quite good and ends up in the same result like your solution.

That's new. Glad that it's been added natively! Simplifies things a lot.
Thanks @ThunderAnimal, I can't see it in Notion for Macbook, which draw.io r u using?
Thanks @ThunderAnimal, I can't see it in Notion for Macbook, which draw.io r u using?
You need download destop version, the link is here: https://github.com/jgraph/drawio-desktop/releases/
Is it the same function though? As I see exporting as URL wraps the diagram into BASE64 and so the URL itself is the diagram. Meaning, that doing it with the method of this repository I actually make a snapshot of the diagram and store it on Notion (visualized via your HTML).
When I click the export as Notion on the other hand, it warns me about needing access - which I interpret as not making a snapshot, but accessing the live diagram.
If I'm right, you still have a unique functionality draw.io still does not support. Like what if I collaborate with a friend on Notion who has no access to my diagram stored on my Google Drive? I expect him not to be able to see the draw.io way embedded diagram at all (unless I share it with Google permissions on the file). On the other hand, with your method, he will be able to immediately see it embedded, open it, make modifications too for himself. Or anyone who checks the Notion page, for that matter.
Can you please verify this? @ivankahl @ThunderAnimal (Btw thanks for the very useful project @ivankahl and the headsup for the builtin solution @ThunderAnimal, I did not notice.)