MediaWiki reader: Make smart double quotes depend on smart
extension.
Closes #3585.
This commit is contained in:
parent
b9a30ef959
commit
e6f4636a2c
1 changed files with 3 additions and 1 deletions
|
@ -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 "\""
|
||||
|
|
Loading…
Add table
Reference in a new issue