将数学表达式编写为文本会使其非常难看
<p>λy.xy</p>
用MathML做这件事似乎更好
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>λ</mi>
<mi>y</mi>
<mo>.</mo>
<mi>x</mi>
<mi>y</mi>
</math>
(On math stack exchange it's even nicer with the same MathML: , but I'm not sure yet how to get that without MathJax)
我想在我的Reaction应用程序中拥有更好的外观,但它似乎不接受<math>
的标签.有没有类似于JSX的解决方案,可以让我像下面的HTML一样使用RESPECT交互?
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi onClick="console.log('hello')">λ</mi>
<mi>y</mi>
<mo>.</mo>
<mi>x</mi>
<mi>y</mi>
</math>