4
我試圖建立一個功能,如this site用戶將在文本區域中輸入數學表達式,然後它將呈現爲MathML格式。數學表達式MathML
例子:
Input expression string: cos(x^3)
Then the expression should be converted to MathML as:
<math xmlns='http://www.w3.org/1998/Math/MathML'>
<mrow>
<mi>cos</mi>
<mo>⁡</mo>
<mo>(</mo>
<msup>
<mi>x</mi>
<mn>3</mn>
</msup>
<mo>)</mo>
</mrow>
</math>
我試圖找到這件事情的C#解決方案和GOOGLE了很多關於這一點,但並沒有發現太大的幫助。 如果有人知道任何資源開始使用此功能,請讓我知道。 任何幫助將不勝感激。