add support for math block and inline macro