Hello,
I am creating some documentation for the blocks in our application, and I would like to be able to just render the SVG for the block into a static block of HTML that also contains information about how the block should be used.
I am able to get a BlockSVG object by calling Scratch.workspace.newBlock(type). How can I then make the BlockSVG object create the SVG markup I need to insert the block into my documentation? I can not tell if I need to create a separate workspace for the documentation block to render into.
Any pointers would be appreciated! Thanks you!