inline formulae converted to spans