From 25e43d1c8944f793b7c22fad207a94a11d93365d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 11 Oct 2013 10:43:07 -0700 Subject: LaTeX reader: Fixed character escaping in \url{}. Previously `\~` wasn't handled properly, among others. --- src/Text/Pandoc/Readers/LaTeX.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index cf5119345..d22430eb9 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -527,9 +527,7 @@ inNote ils = unescapeURL :: String -> String unescapeURL ('\\':x:xs) | isEscapable x = x:unescapeURL xs - where isEscapable '%' = True - isEscapable '#' = True - isEscapable _ = False + where isEscapable c = c `elem` "#$%&~_^\\{}" unescapeURL (x:xs) = x:unescapeURL xs unescapeURL [] = "" -- cgit v1.2.3