git.iko.soy/typeable/pandoc
on master help sign in
Modified LaTeX reader for new Math blocks.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1114 788f1e2b-df1e-0410-8736-df70ead52e1b

commit7f4fd9ab3d2f5b0dcbe2cd4b38d6089f7d0f096d authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 29 Nov 2007, 08:09 (19 years ago) parent5396429
1 file changed+3−3
Text/Pandoc/Readers/LaTeX.hs+3−3
Text/Pandoc/Readers/LaTeX.hs+3−3
@@ -212,7 +212,7 @@ mathBlockWith start end = try $ do
212212 spaces
213213 result <- manyTill anyChar end
214214 spaces
215− return $ BlockQuote [Para [TeX ("$" ++ result ++ "$")]]
215+ return $ BlockQuote [Para [Math result]]
216216
217217--
218218-- list blocks
@@ -594,13 +594,13 @@ math1 = try $ do
594594 char '$'
595595 result <- many (noneOf "$")
596596 char '$'
597− return $ TeX ("$" ++ result ++ "$")
597+ return $ Math result
598598
599599math2 = try $ do
600600 string "\\("
601601 result <- many (noneOf "$")
602602 string "\\)"
603− return $ TeX ("$" ++ result ++ "$")
603+ return $ Math result
604604
605605--
606606-- links and images