arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.56k stars 277 forks source link

[Feature] Underline analog to bold #2429

Open andrew-murdza opened 3 months ago

andrew-murdza commented 3 months ago

Steps to Reproduce

  1. Run the html code
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Change FontShape of MathField</title>
    <script defer src="https://unpkg.com/mathlive"></script>
    </head>
    <body>
    <math-field id='mf'>1</math-field>
    </body>
    </html>
  2. Select 1, Right-click, and choose Font Style.

Actual Behavior

There is no option for underline

Expected Behavior

I want there to be an underline option. It is currently possible to do it with accents, but it doesn't have the checkmark and toggling on and off features. Since underlining is similar to bold and italics I believe it should work in a similar way.

Environment

0.100.0 Windows Chrome