Add support for Definition lists and Math blocks

and fix a number of unspectacular bugs