adding support for inline math, fixes #20