This demo implements a custom view responsible for rendering interactive HTML cards (Microsoft Adaptive Cards) inside foreign objects and synchronizing the size of the view and the model, since the size of the HTML may change over the lifetime of the card. It also demonstrates the use of the markdown language inside the shapes using the markdown-it library.
Study the source code to learn how to embed existing HTML rendered by a third-party library into a shape in JointJS, and how to use markdown inside shapes using the markdown-it library.
The source code of this demo is available as part of the JointJS+ commercial license. Don't have a license yet? Start a trial and use the source code of this and many other demos for free, with no obligations, for 30 days.