LaTeX reader: put contents of unknown environments in a Div...
when `raw_tex` is not enabled. (When `raw_tex` is enabled,
the whole environment is parsed as a raw block.)
The class name is the name of the environment.
Previously, we just included the contents without the
surrounding Div, but having a record of the environment's
boundaries and name can be useful.
Closes #6997.
commit260aaaacc640cc458259e292c42e15c3d2f34b3f
authorJohn MacFarlane <jgm@berkeley.edu>
dateSat 2 Jan 2021, 08:19 (6 years ago)
parent9a18cf4
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -1835,7 +1835,7 @@ rawEnv name = do
18351835 report $ SkippedContent beginCommand pos1
18361836 pos2 <- getPosition
18371837 report $ SkippedContent ("\\end{" <> name <> "}") pos2
1838− return bs
1838+ return $ divWith ("",[name],[]) bs
18391839
18401840rawVerbEnv :: PandocMonad m => Text -> LP m Blocks
18411841rawVerbEnv name = do