git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: Fixed character escaping in \url{}.

Previously `\~` wasn't handled properly, among others.

commit25e43d1c8944f793b7c22fad207a94a11d93365d authorJohn MacFarlane <jgm@berkeley.edu> dateFri 11 Oct 2013, 10:43 (13 years ago) parent627c540
1 file changed+1−3
src/Text/Pandoc/Readers/LaTeX.hs+1−3
src/Text/Pandoc/Readers/LaTeX.hs+1−3
@@ -527,9 +527,7 @@ inNote ils =
527527
528528unescapeURL :: String -> String
529529unescapeURL ('\\':x:xs) | isEscapable x = x:unescapeURL xs
530− where isEscapable '%' = True
531− isEscapable '#' = True
532− isEscapable _ = False
530+ where isEscapable c = c `elem` "#$%&~_^\\{}"
533531unescapeURL (x:xs) = x:unescapeURL xs
534532unescapeURL [] = ""
535533