I wanted to ask a question in Mathematics Stack Exchange. In the question, I wanted to add a geometric figure. I have the asymptote code of the figure. I know I can compile the code in other sites and then take a screenshot to add the image. But I want to know if I can compile the code in math stack exchange. I added the code inside $$
and [asy][/asy]
but that didn't work.
(I thought this question belonged to the TeX Stack Exchange and asked it here (now deleted). But the users there suggested asking it here.)