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:
parent
cab16024fc
commit
e03ed7377c
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue