aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-06 20:51:51 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-06 20:51:51 -0800
commit8c48bd8feb97e6c291df2e0ca09f62fb34711d33 (patch)
tree80821e64776ea6ed605f6134e53a2a93feda3e6c /src/Text/Pandoc/Readers/LaTeX.hs
parent300f8528daaa13b6ee6931bbe8bb70eac914b333 (diff)
downloadpandoc-8c48bd8feb97e6c291df2e0ca09f62fb34711d33.tar.gz
Don't put the text of an autolink in Code font.
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 8848be028..5362b1b53 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -426,7 +426,7 @@ inlineCommands = M.fromList $
, ("lstinline", doverb)
, ("texttt", (code . stringify . toList) <$> tok)
, ("url", (unescapeURL <$> braced) >>= \url ->
- pure (link url "" (codeWith ("",["url"],[]) url)))
+ pure (link url "" (str url)))
, ("href", (unescapeURL <$> braced <* optional sp) >>= \url ->
tok >>= \lab ->
pure (link url "" lab))