diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-02 21:27:00 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-10-02 21:28:14 -0700 |
commit | 492f496842217b8377e657217bec0d8875424f72 (patch) | |
tree | ff207f0a1564e4884b17f8b86d37eb8f6f8cc092 | |
parent | 514662e544a828e6c3904d2fec0216dc19bbcb9f (diff) | |
download | pandoc-492f496842217b8377e657217bec0d8875424f72.tar.gz |
Markdown reader: Fixed bug with indented code following raw LaTeX.
Closes #3947.
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 | ||||
-rw-r--r-- | test/command/3947.md | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 1364f25cb..61c07ed12 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -1101,7 +1101,7 @@ rawTeXBlock = do <|> (B.rawBlock "latex" . concat <$> rawLaTeXBlock `sepEndBy1` blankline) - spaces + optional blanklines return $ return result rawHtmlBlocks :: PandocMonad m => MarkdownParser m (F Blocks) diff --git a/test/command/3947.md b/test/command/3947.md new file mode 100644 index 000000000..7ce0be171 --- /dev/null +++ b/test/command/3947.md @@ -0,0 +1,11 @@ +``` +% pandoc -t native +\newpage + + Code block + + Another Code block +^D +[RawBlock (Format "latex") "\\newpage" +,CodeBlock ("",[],[]) "Code block\n\nAnother Code block"] +``` |