add support for math environments

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>