From 29b3975cbec5d393e404f96e5f68506587ee74de Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 3 Dec 2016 16:30:47 +0100 Subject: Make sure texMathToInlines issues warning. --- src/Text/Pandoc/Writers/Math.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3