MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

[SVG] DOM order for \sqrt[2n]{x}

Open pkra opened this issue 1 year ago • 3 comments

While re-testing https://github.com/Speech-Rule-Engine/speech-rule-engine/issues/733#issuecomment-2678222606 I noticed a (for me unexpected) DOM order for roots with index, e.g., \sqrt[2n]{x}

While SRE's skeleton structure (now) has index followed by radicand, the SVG output does not.

A naive test indicated that this order is not necessary for the SVG output. If that's the case, it would help to have the "correct"/matching DOM order; it helps with non-visual display in some SSG scenarios.

pkra avatar Feb 24 '25 12:02 pkra

Yes, the order can be switched. It is not a big change. Do you want me to make you a patch, or a PR that you can apply, or is it something that can wait for the next release?

dpvc avatar Feb 25 '25 00:02 dpvc

is it something that can wait for the next release?

Of course.

pkra avatar Feb 25 '25 07:02 pkra

I've made a PR for this, in case you need it before the next release.

dpvc avatar Feb 28 '25 18:02 dpvc