mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 00:45:47 +00:00
Markdown reader: Combine consecutive latex environments.
This helps when you have two minipages which can't have blank lines between them. See #690, #1196.
This commit is contained in:
@@ -939,8 +939,10 @@ rawVerbatimBlock = try $ do
|
||||
rawTeXBlock :: MarkdownParser (F Blocks)
|
||||
rawTeXBlock = do
|
||||
guardEnabled Ext_raw_tex
|
||||
result <- (B.rawBlock "latex" <$> rawLaTeXBlock)
|
||||
<|> (B.rawBlock "context" <$> rawConTeXtEnvironment)
|
||||
result <- (B.rawBlock "latex" . concat <$>
|
||||
rawLaTeXBlock `sepEndBy1` blankline)
|
||||
<|> (B.rawBlock "context" . concat <$>
|
||||
rawConTeXtEnvironment `sepEndBy1` blankline)
|
||||
spaces
|
||||
return $ return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user