summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Yakimov <root@livid.pp.ru>2015-03-30 06:42:15 +0300
committerNikolay Yakimov <root@livid.pp.ru>2015-03-30 06:42:15 +0300
commit6a0d500f99aef5792b97d3ecd4f72af7cc473a72 (patch)
tree2f953861548cca1bfd7f5f55ab615c1679898f7e
parent96438b11e0c5b8ad4a384eede0cba164153e8c5a (diff)
Latex Reader: Guard against para starting with inline macro
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 4d50ec4ed..31a4c7c5c 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -253,6 +253,7 @@ blockCommand = try $ do
let raw = do
rawcommand <- getRawCommand name'
transformed <- applyMacros' rawcommand
+ notFollowedBy $ parseFromString inlines transformed
if transformed /= rawcommand
then parseFromString blocks transformed
else mzero