git.iko.soy/typeable/pandoc
on master help sign in
Make sure texMathToInlines issues warning.
commit29b3975cbec5d393e404f96e5f68506587ee74de authorJohn MacFarlane <jgm@berkeley.edu> dateSat 3 Dec 2016, 16:30 (10 years ago) parent830be4d
1 file changed+3−1
src/Text/Pandoc/Writers/Math.hs+3−1
src/Text/Pandoc/Writers/Math.hs+3−1
@@ -19,7 +19,9 @@ texMathToInlines mt inp = do
1919 res <- convertMath writePandoc mt inp
2020 case res of
2121 Right (Just ils) -> return ils
22− Right (Nothing) -> return [mkFallback mt inp]
22+ Right (Nothing) -> do
23+ warn $ "Could not render TeX math as unicode, rendering as raw TeX:\n" ++ inp
24+ return [mkFallback mt inp]
2325 Left il -> return [il]
2426
2527mkFallback :: MathType -> String -> Inline