diff options
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 0c635abee..d8c6edf22 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -242,15 +242,15 @@ setextHeader = try $ do -- hrule block -- -hruleWith chr = try $ do - count 3 (skipSpaces >> char chr) - skipMany (skipSpaces >> char chr) +hrule = try $ do + skipSpaces + start <- oneOf hruleChars + count 2 (skipSpaces >> char start) + skipMany (skipSpaces >> char start) newline optional blanklines return HorizontalRule -hrule = choice (map hruleWith hruleChars) <?> "hrule" - -- -- code blocks -- |