aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Writers/Math.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Math.hs b/src/Text/Pandoc/Writers/Math.hs
index 4540a2479..a7fe6d648 100644
--- a/src/Text/Pandoc/Writers/Math.hs
+++ b/src/Text/Pandoc/Writers/Math.hs
@@ -19,7 +19,9 @@ texMathToInlines mt inp = do
res <- convertMath writePandoc mt inp
case res of
Right (Just ils) -> return ils
- Right (Nothing) -> return [mkFallback mt inp]
+ Right (Nothing) -> do
+ warn $ "Could not render TeX math as unicode, rendering as raw TeX:\n" ++ inp
+ return [mkFallback mt inp]
Left il -> return [il]
mkFallback :: MathType -> String -> Inline