Rotate Text in editing mode - Mathjax

What I’m trying to do

I want to be able to rotate some text in a math equation and see it rotated in editor mode. The mathjax for what I want is:
$$
\overset{{ \style{display: inline-block; transform: rotate(-45deg)}{=U}}}{V \cap Y}
$$
image

However I know that transform is no longer allowed in \style for security reasons

Things I have tried

I know I can wrap the formula in a span tag and rotate with the following css

    .rot45 {
        display: inline-block;
        transform: rotate(-45deg);
    }

And

<div class = "math display"><span class="rot45">$\overset{{{=U}}}{V \cap Y}$</span>
</div>

Which will show the entire text rotated, however because the text I need rotated is just the =U, this does not provide a solution

So far the best workaround I can get is by simply putting the div with =U on the line above the formula

<div class = "math display"><span class="rot45">=U</span>
</div>
${V \cap Y}$

But this is far less than ideal

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.