allow multiline inline Latex math

implementing suggestion by oantolin. fixes issue #38.