fix a lot of issues with html rendering when using unit package

Basically the exponent have to be excluded from the unit scope