diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-01 11:19:55 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-01 11:19:55 -0800 |
commit | 7050c26abc3940e9d2b12f7a4fa7bf246062cb2f (patch) | |
tree | 44baec89d84b818c9348292ab2e62dd9cbdb8c52 /src/Text/Pandoc | |
parent | 6a0d4da38267830e98f89fb9a79a244d6208387c (diff) | |
download | pandoc-7050c26abc3940e9d2b12f7a4fa7bf246062cb2f.tar.gz |
LaTeX writer: Don't escape $ in URL. Closes #1913.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index eb514698a..d50ccb655 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -206,7 +206,7 @@ stringToLaTeX ctx (x:xs) = do '€' -> "\\euro{}" ++ rest '{' -> "\\{" ++ rest '}' -> "\\}" ++ rest - '$' -> "\\$" ++ rest + '$' | not isUrl -> "\\$" ++ rest '%' -> "\\%" ++ rest '&' -> "\\&" ++ rest '_' | not isUrl -> "\\_" ++ rest |