HTML 输出 #
表达式解析器可以输出 HTML 字符串,其中每个 Node 都被转换为一个带语义类名的 <span> 元素。每个类名都以 math- 前缀开头。这些类名可用于 CSS,以高亮语法或更改默认布局(例如,运算符周围的空格)。
可用类名 #
math-numbermath-stringmath-boolean(true和false)math-undefinedmath-function(函数名)math-parameter(函数参数)math-property(对象成员)math-symbol(变量、单位和内置常量)math-null-symbol(null)math-nan-symbol(NaN)math-infinity-symbol(Infinity)math-imaginary-symbol(i)
math-operatormath-unary-operatormath-lefthand-unary-operatormath-righthand-unary-operator
math-binary-operatormath-explicit-binary-operatormath-implicit-binary-operator(空元素)
math-assignment-operatormath-variable-assignment-operator(=)math-property-assignment-operator(对象中的:)
math-accessor-operator(对象中的.)math-range-operator(范围中的:)
math-parenthesis-math-round-parenthesis((和)) -math-square-parenthesis([和]) -math-curly-parenthesis({和})math-separator(�,,;` 和<br />)