diff options
author | Albert Krewinkel <albert+github@zeitkraut.de> | 2017-12-20 18:04:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 18:04:50 +0100 |
commit | e45f87a3be12086f7f642fdbb407ce5f3bfe59d4 (patch) | |
tree | eb10c1eb80552180a8e8e1fb938da10d16a4837f | |
parent | b5e62a5c0963cf10338170a94f6a5a2c5b39ad1d (diff) | |
download | pandoc-e45f87a3be12086f7f642fdbb407ce5f3bfe59d4.tar.gz |
Org reader: fix asterisks-related parsing error
A parsing error was fixed which caused the org reader to fail when
parsing a paragraph starting with two or more asterisks.
Fixes: #4180
-rw-r--r-- | src/Text/Pandoc/Readers/Org/Blocks.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Org/Blocks.hs b/src/Text/Pandoc/Readers/Org/Blocks.hs index 04a0efc15..cc6abbfa5 100644 --- a/src/Text/Pandoc/Readers/Org/Blocks.hs +++ b/src/Text/Pandoc/Readers/Org/Blocks.hs @@ -737,7 +737,7 @@ noteBlock = try $ do paraOrPlain :: PandocMonad m => OrgParser m (F Blocks) paraOrPlain = try $ do -- Make sure we are not looking at a headline - notFollowedBy' (char '*' *> oneOf " *") + notFollowedBy' headerStart ils <- inlines nl <- option False (newline *> return True) -- Read block as paragraph, except if we are in a list context and the block |