diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-06 20:51:51 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-06 20:51:51 -0800 |
commit | 8c48bd8feb97e6c291df2e0ca09f62fb34711d33 (patch) | |
tree | 80821e64776ea6ed605f6134e53a2a93feda3e6c /src/Text/Pandoc/Writers/Org.hs | |
parent | 300f8528daaa13b6ee6931bbe8bb70eac914b333 (diff) | |
download | pandoc-8c48bd8feb97e6c291df2e0ca09f62fb34711d33.tar.gz |
Don't put the text of an autolink in Code font.
Diffstat (limited to 'src/Text/Pandoc/Writers/Org.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/Org.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Org.hs b/src/Text/Pandoc/Writers/Org.hs index b885a7a40..86b570c30 100644 --- a/src/Text/Pandoc/Writers/Org.hs +++ b/src/Text/Pandoc/Writers/Org.hs @@ -271,7 +271,7 @@ inlineToOrg (LineBreak) = return cr -- there's no line break in Org inlineToOrg Space = return space inlineToOrg (Link txt (src, _)) = do case txt of - [Code _ x] | x == src -> -- autolink + [Str x] | escapeURI x == src -> -- autolink do modify $ \s -> s{ stLinks = True } return $ "[[" <> text x <> "]]" _ -> do contents <- inlineListToOrg txt |