git.iko.soy/typeable/pandoc
on master help sign in
Avoid an unnecessary withRaw.
commiteb0c63b00263263e3dc0f74c0bf19e93c7afeb13 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 12 Feb 2021, 19:29 (6 years ago) parentd932262
1 file changed+4−1
src/Text/Pandoc/Readers/LaTeX.hs+4−1
src/Text/Pandoc/Readers/LaTeX.hs+4−1
@@ -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