Latex Reader: Guard against para starting with inline macro

This commit is contained in:
Nikolay Yakimov 2015-03-30 06:42:15 +03:00
parent 96438b11e0
commit 6a0d500f99

View file

@ -253,6 +253,7 @@ blockCommand = try $ do
let raw = do let raw = do
rawcommand <- getRawCommand name' rawcommand <- getRawCommand name'
transformed <- applyMacros' rawcommand transformed <- applyMacros' rawcommand
notFollowedBy $ parseFromString inlines transformed
if transformed /= rawcommand if transformed /= rawcommand
then parseFromString blocks transformed then parseFromString blocks transformed
else mzero else mzero