We need a new datatype to store mathematical formulae.
There are two major usecases for storing formulas:
- display on Wikipedia
- usage to do actual calculations
We'd need to cater to both usecases.
In a first step the format should only display formulae. In a second step additional functionality will be added. To be foward compatible the a json format seems advisable. In a first version the formula data can be simple:
{"tex":"\sin x^2 + \cos x^2 = 1"}
thereafter, we can add additional information regarding the identifiers
{"tex":"E=mc^2", "definitons": [ "E":"Q11379", "m":"Q11423", "c":"Q2111" ] }