Open andrew-murdza opened 3 weeks ago
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> <h1>MathField FontShape Example</h1> <math-field id='mf'>\begin{aligned}\bu11\\\bu2\end{aligned}</math-field> <script> customElements.whenDefined("math-field").then(() => { document.body.classList.add("ready"); mf=document.getElementById('mf'); mf.macros={...mf.macros,bu:'&\\bullet~~'} }); </script> </body> </html>
When & is used inside of a macro, it is treated as the letter & and not the latex character &
Run the attached html code
The bullets are not lined up and there is a letter &
The bullets are lined up (because there are &'s an an aligned environment) and there is no "&" letter present in the output.
Windows Chrome
Html code
Description
Steps to Reproduce
Run the attached html code
Actual Behavior
Expected Behavior
Environment
Windows Chrome