mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
c60fa06a6a
been added, but the parser now recognizes numbers containing decimal points as being renderable using <mn>. The delimiters (,[,{ now render using <mo> tags, this allows for equations such as "y=f(x)" to be rendered to MathML. Finally for standard functions such as \sin, now render as <mi>\sin</mi>⁡, etc so standard function names are supported.
24 lines
738 B
OCaml
24 lines
738 B
OCaml
type font_force =
|
|
FONTFORCE_IT
|
|
| FONTFORCE_RM
|
|
type font_class =
|
|
FONT_IT (* IT default, may be forced to be RM *)
|
|
| FONT_RM (* RM default, may be forced to be IT *)
|
|
| FONT_UF (* not affected by IT/RM setting *)
|
|
| FONT_RTI (* RM - any, IT - not available in HTML *)
|
|
| FONT_UFH (* in TeX UF, in HTML RM *)
|
|
type math_class =
|
|
MN
|
|
| MI
|
|
| MO
|
|
| MF
|
|
|
|
type t =
|
|
HTMLABLEC of font_class * string * string
|
|
| HTMLABLEM of font_class * string * string
|
|
| HTMLABLE of font_class * string * string
|
|
| MHTMLABLEC of font_class * string * string * math_class * string
|
|
| MHTMLABLEFC of font_class * string * string * math_class * string * string
|
|
| HTMLABLE_BIG of string * string
|
|
| TEX_ONLY of string
|