# Embedding tikzcd diagrams

I know some tags are not supported, and some of them will likely never be (I have the <table> tag in mind). However, it is sometimes useful to embbed commutative diagrams in some question/answers. Currently, the "life hack" that does not require third-party tools is somewhat dirty, and the beautiful approach uses 1) compiling a document, 2) cropping a screen capture, and 3) uploading it.

Hoever, Yichuan Shen has a very convenient tool, tikzcd-editor $$-$$ that I even use when I'm writing TeX documents $$-$$, is on tracks to being a quick solution to this problem. There are still two downsides :

1. It still requires a screen capture and cropping an image (at least, it saves the TeX standalone compiling).

2. This tool uses guidelines to help creating diagrams, which are going to be displayed on any screen capture.

I know that <iframe> tags are not part of the list of allowed tags. However, I was wondering if it were possible to embed such diagrams directly onto a question/answer. What I have in mind is the possibility to generate a UID for each tikzcd-editor diagram. For instance, for this pushout diagram, the UID generated is :

N4Igdg9gJgpgziAXAbVABwnAlgFyxMJZABgBpiBdUkANwEMAbAVxiRAEUQBfU9TXfIRQBGUsKq1GLNgAVuvEBmx4CRAExiJ9Zq0QgAmvL7LBRUWq1TdIABpHF-FUOQaL1bdL0AtbhJhQAc3giUAAzACcIAFskABZqHAgkAGZ3KzZQ+wjouISkxA1JHTYAkGoGOgAjGAYZR1M9cKwAgAscLMiYgrykUSLPEAAdQawouhwWgH01MpAK6tr61Ubmto6cxFSQRN604r1h0fGp4XWurZ3EMhBqsCgU649rYYArMYnJ054wzqRCy+ut3uiAAtMlHukDoM3sdprN5jU6iZliAmq12t8QNkun0AeUsGBrFA6HAWv5Zk82MMYAAPLBwHBwACE8KqiKWQjmMFCGIoXCAA


Then, it would be convenient to just generate the code, as I did, and to somehow embbed it in a question, that would include it somehow. In my example, it would simply produce (I am just uploading an image, for the sake of illustrating my question) :

The embedding would get rid of the guidelines and do all the "hard-work" for us. Is that possible ? Also, is my question welcome ? I know this has been asked quite a few times, but I have the feeling my approach is different and somehow deserves a question on its own. The thing is : are suggestions like mine allowed ? (Sorry for being new to the Meta community !)

• Welcome to Meta Math.SE! With feature requests I think it is useful to consider how the proposal affects the software developers as well as the user community, so that the trade-off can be judge in terms of the benefit achieved by the amount of effort required. Sep 21, 2020 at 14:07