diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-29 08:09:13 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-29 08:09:13 +0000 |
commit | 7f4fd9ab3d2f5b0dcbe2cd4b38d6089f7d0f096d (patch) | |
tree | 7ccedd181d923c0ea1d2fb6a372f894addd09f4b /Text | |
parent | 53964297b5ffa72dab0d30f2e2964284a9c8ccb5 (diff) | |
download | pandoc-7f4fd9ab3d2f5b0dcbe2cd4b38d6089f7d0f096d.tar.gz |
Modified LaTeX reader for new Math blocks.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1114 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Text')
-rw-r--r-- | Text/Pandoc/Readers/LaTeX.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Text/Pandoc/Readers/LaTeX.hs b/Text/Pandoc/Readers/LaTeX.hs index 79f9fc0f7..ac338c106 100644 --- a/Text/Pandoc/Readers/LaTeX.hs +++ b/Text/Pandoc/Readers/LaTeX.hs @@ -212,7 +212,7 @@ mathBlockWith start end = try $ do spaces result <- manyTill anyChar end spaces - return $ BlockQuote [Para [TeX ("$" ++ result ++ "$")]] + return $ BlockQuote [Para [Math result]] -- -- list blocks @@ -594,13 +594,13 @@ math1 = try $ do char '$' result <- many (noneOf "$") char '$' - return $ TeX ("$" ++ result ++ "$") + return $ Math result math2 = try $ do string "\\(" result <- many (noneOf "$") string "\\)" - return $ TeX ("$" ++ result ++ "$") + return $ Math result -- -- links and images |