diff options
author | Nikolay Yakimov <root@livid.pp.ru> | 2015-03-30 06:42:15 +0300 |
---|---|---|
committer | Nikolay Yakimov <root@livid.pp.ru> | 2015-03-30 06:42:15 +0300 |
commit | 6a0d500f99aef5792b97d3ecd4f72af7cc473a72 (patch) | |
tree | 2f953861548cca1bfd7f5f55ab615c1679898f7e /src | |
parent | 96438b11e0c5b8ad4a384eede0cba164153e8c5a (diff) | |
download | pandoc-6a0d500f99aef5792b97d3ecd4f72af7cc473a72.tar.gz |
Latex Reader: Guard against para starting with inline macro
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 1 |
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 |