aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-25 19:43:30 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-25 19:43:30 -0800
commitae7455811461a7f5c7e1130dc1a31e45f6684c55 (patch)
tree6bbb17e98854687c38de9fef7591e64906450251 /src
parent846be80c268697a3ee07a292db6dd78208aaabe2 (diff)
downloadpandoc-ae7455811461a7f5c7e1130dc1a31e45f6684c55.tar.gz
Markdown reader: Moved guardEnabled to definitionList.
From definitionListItem. Slight performance improvement.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 558043b3c..88ce86d38 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -736,7 +736,6 @@ defListMarker = do
definitionListItem :: MarkdownParser (F (Inlines, [Blocks]))
definitionListItem = try $ do
- guardEnabled Ext_definition_lists
-- first, see if this has any chance of being a definition list:
lookAhead (anyLine >> optional blankline >> defListMarker)
term <- trimInlinesF . mconcat <$> manyTill inline newline
@@ -763,6 +762,7 @@ defRawBlock = try $ do
definitionList :: MarkdownParser (F Blocks)
definitionList = do
+ guardEnabled Ext_definition_lists
items <- fmap sequence $ many1 definitionListItem
return $ B.definitionList <$> fmap compactify'DL items