mathml
bearbeitet von
@@Joachim
> `<math mathsize="1em"><msqrt><mrow><mi>a</mi><mi>x</mi><mo>²</mo><mo>-</mo><mn>2</mn><mi>a</mi><mi>x</mi><mo>+</mo><mn>13</mn></mrow></msqrt><mo>=</mo><msqrt><mrow><mo>(</mo></mrow><mi>a</mi><mo>+</mo><mi>2</mi><mrow><mo>)</mo></mrow><mo>²</mo><mo>-</mo><mi>a</mi><mi>x</mi><mo>+</mo><mn>1</mn></math>`
Zum fehlenden End-Tag kommen noch andere Ungereimtheiten hinzu:
`<mrow><mo>(</mo></mrow>`{:.language-mathml}: Da wird nichts gruppiert; der `mrow`-Container kann weg. Dito bei der schließenden Klammer.
`<mo>²</mo>`{:.language-mathml}: Ist ² ein Operator? Ich denke, nein. Das sollte mit [`msup`-Elementen](https://developer.mozilla.org/en-US/docs/Web/MathML/Reference/Element/msup) gemacht werden.
```mathml
<math>
<msqrt>
<mi>a</mi>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>-</mo>
<mn>2</mn>
<mi>a</mi>
<mi>x</mi>
<mo>+</mo>
<mn>13</mn>
</msqrt>
<mo>=</mo>
<msqrt>
<msup>
<mrow>
<mo>(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>2</mi>
<mo>)</mo>
</mrow>
<mn>2</mn>
</msup>
<mo>-</mo>
<mi>a</mi>
<mi>x</mi>
<mo>+</mo>
<mn>1</mn>
</msqrt>
</math>
```
---
Wie/ob man die Wurzelzeichen gleich groß hinbekommt, hab ich noch nicht rausgefunden.
Fun fact: MathJax rendert die auch unterschiedlich groß: $$\sqrt{ax^2-2ax+13} = \sqrt{\left(a+2\right)^2-ax+1}$$
🖖 Live long and prosper
{:@en}
--
*“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”*{:@en}
— Bruce Springsteen, Manchester 2025-05-14