LaTeX reader: Support babel-style quoting: `` "`..."' ``.
commit0132f6fcb75e58774846e92bac6df2afd7a50e6f
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 17 Dec 2013, 16:03 (13 years ago)
parent8264439
src/Text/Pandoc/Readers/LaTeX.hs+2
@@ -173,6 +173,8 @@ double_quote :: LP Inlines
173173double_quote =
174174 ( quoted' doubleQuoted (try $ string "``") (void $ try $ string "''")
175175 <|> quoted' doubleQuoted (string "“") (void $ char '”')
176+ -- the following is used by babel for localized quotes:
177+ <|> quoted' doubleQuoted (try $ string "\"`") (void $ try $ string "\"'")
176178 <|> quoted' doubleQuoted (string "\"") (void $ char '"')
177179 )
178180