@@ -1869,9 +1869,12 @@ rawEnv name = do
18691869 pos1 <- getPosition
18701870 (bs, raw) <- withRaw $ env name blocks
18711871 if parseRaw
1872− then return $ rawBlock "latex"
1872+ then do
1873+ (_, raw) <- withRaw $ env name blocks
1874+ return $ rawBlock "latex"
18731875 $ beginCommand <> untokenize raw
18741876 else do
1877+ bs <- env name blocks
18751878 report $ SkippedContent beginCommand pos1
18761879 pos2 <- getPosition
18771880 report $ SkippedContent ("\\end{" <> name <> "}") pos2