Testing the ability to select and format MathML/LaTeX elements with font size and color changes.
✅ Math elements can now be selected!
Previously, math elements had user-select: none which prevented them from being selected at all.
This made it impossible to apply formatting like font size or color changes to math expressions.
Now you can select math elements and apply font formatting just like regular text!
contentEditable="false" to prevent accidental editing of their internal structureuser-select: none has been removed, allowing selectionwrapSelection function has special logic to handle MathML elements properly✅ Click on a single math expression and apply formatting
✅ Click and drag across multiple math expressions and apply formatting to all at once
✅ Select both regular text and math expressions together, then apply formatting
✅ Select math and use the Font Size dropdown to make it larger or smaller
✅ Select math and use the Font Color dropdown to change its color
✅ Verify that both LaTeX (rendered with KaTeX) and native MathML can be selected and formatted
Math elements still have contentEditable="false", so clicking inside them won't allow you to edit
the math structure itself. This prevents accidental corruption of math expressions while still allowing
formatting to be applied to the entire element.