aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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