@@ -414,7 +414,10 @@ inlineToAsciiDoc _ (Str str) = return $ text $ escapeString str
414414inlineToAsciiDoc _ (Math InlineMath str) =
415415 return $ "latexmath:[$" <> text str <> "$]"
416416inlineToAsciiDoc _ (Math DisplayMath str) =
417− return $ "latexmath:[\\[" <> text str <> "\\]]"
417+ return $
418+ blankline <> "[latexmath]" $$ "++++" $$
419+ "\\[" <> text str <> "\\]"
420+ $$ "++++" $$ blankline
418421inlineToAsciiDoc _ il@(RawInline f s)
419422 | f == "asciidoc" = return $ text s
420423 | otherwise = do