aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-28 10:50:58 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-28 10:50:58 -0800
commit8c55023d188bb159b5309d817ba6d834a69e7b9c (patch)
treeaad2e98afb4bd7df6e506a19c1a6f7ef0f955491 /src/Text/Pandoc/Readers/LaTeX.hs
parentcc17c794a1ec7242241d67c8a6fd36d242d62782 (diff)
downloadpandoc-8c55023d188bb159b5309d817ba6d834a69e7b9c.tar.gz
Fixed latex macro parsing.
Now latex macro definitions are preserved when output is latex, and applied when it is another format, as originally intended. Partially addresses #730. \providecommand is still not supported. For this we need changes to texmath.
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 05a71bd2b..253e50ef2 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -204,7 +204,7 @@ block :: LP Blocks
block = (mempty <$ comment)
<|> (mempty <$ ((spaceChar <|> newline) *> spaces))
<|> environment
- <|> mempty <$ macro
+ <|> macro
<|> blockCommand
<|> paragraph
<|> grouped block