Skip to content

Commit

Permalink
MediaWiki reader: Make smart double quotes depend on smart extension.
Browse files Browse the repository at this point in the history
Closes #3585.
  • Loading branch information
jgm committed May 25, 2017
1 parent b9a30ef commit e6f4636
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Text/Pandoc/Readers/MediaWiki.hs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,8 @@ strong = B.strong <$> nested (inlinesBetween start end)
end = try $ sym "'''"

doubleQuotes :: PandocMonad m => MWParser m Inlines
doubleQuotes = B.doubleQuoted <$> nested (inlinesBetween openDoubleQuote closeDoubleQuote)
doubleQuotes = do
guardEnabled Ext_smart
B.doubleQuoted <$> nested (inlinesBetween openDoubleQuote closeDoubleQuote)
where openDoubleQuote = sym "\"" >> lookAhead nonspaceChar
closeDoubleQuote = try $ sym "\""

0 comments on commit e6f4636

Please sign in to comment.