aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-09-27 13:28:04 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-09-27 13:33:14 -0700
commit15a8192b84639a1cb1c4d3750931c8c1bcf58aed (patch)
tree107b6ca5b4d8fca327f8549fed1bf327ca58c5b6 /src/Text/Pandoc
parentf76478bcb9a651623d33c6d4ad766a126bc590a1 (diff)
downloadpandoc-15a8192b84639a1cb1c4d3750931c8c1bcf58aed.tar.gz
Renamed Ext_autolink_code_spans to Ext_monospace_autolinks.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Options.hs4
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs
index 359a26768..a7d02ed10 100644
--- a/src/Text/Pandoc/Options.hs
+++ b/src/Text/Pandoc/Options.hs
@@ -72,7 +72,7 @@ data Extension =
| Ext_markdown_attribute -- ^ Interpret text inside HTML as markdown
-- iff container has attribute 'markdown'
| Ext_escaped_line_breaks -- ^ Treat a backslash at EOL as linebreak
- | Ext_autolink_code_spans -- ^ Put autolink text inside code spans
+ | Ext_monospace_autolinks -- ^ Put autolink text in monospace font
| Ext_fancy_lists -- ^ Enable fancy list numbers and delimiters
| Ext_startnum -- ^ Make start number of ordered list significant
| Ext_definition_lists -- ^ Definition lists as in pandoc, mmd, php
@@ -112,7 +112,7 @@ pandocExtensions = Set.fromList
, Ext_inline_code_attributes
, Ext_markdown_in_html_blocks
, Ext_escaped_line_breaks
- , Ext_autolink_code_spans
+ , Ext_monospace_autolinks
, Ext_fancy_lists
, Ext_startnum
, Ext_definition_lists
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index d69348e30..27e730f9f 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1476,7 +1476,7 @@ autoLink = try $ do
char '<'
(orig, src) <- uri <|> emailAddress
char '>'
- (guardEnabled Ext_autolink_code_spans >>
+ (guardEnabled Ext_monospace_autolinks >>
return (return $ B.link src "" (B.codeWith ("",["url"],[]) orig)))
<|> return (return $ B.link src "" (B.str orig))