diff options
Diffstat (limited to 'Text')
-rw-r--r-- | Text/Pandoc/Readers/Markdown.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Text/Pandoc/Readers/Markdown.hs b/Text/Pandoc/Readers/Markdown.hs index f702a6e33..db9e214b0 100644 --- a/Text/Pandoc/Readers/Markdown.hs +++ b/Text/Pandoc/Readers/Markdown.hs @@ -873,8 +873,9 @@ math = try $ do failIfStrict char '$' notFollowedBy space - words' <- sepBy1 mathWord (many1 space) + words' <- sepBy1 mathWord (many1 (spaceChar <|> (newline >>~ notFollowedBy' blankline))) char '$' + notFollowedBy digit return $ Math $ joinWithSep " " words' emph :: GenParser Char ParserState Inline |