mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 16:35:42 +00:00
Removed Ext_monospace_autolinks.
This commit is contained in:
@@ -1964,11 +1964,6 @@ will become a link:
|
||||
<http://google.com>
|
||||
<sam@green.eggs.ham>
|
||||
|
||||
**Extension: `monospace_autolinks`**
|
||||
|
||||
Pandoc will render autolinked URLs and email addresses as
|
||||
inline code.
|
||||
|
||||
### Inline links ###
|
||||
|
||||
An inline link consists of the link text in square brackets,
|
||||
|
||||
@@ -72,7 +72,6 @@ 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_monospace_autolinks -- ^ Put autolink text in monospace font
|
||||
| Ext_autolink_urls -- ^ Make all absolute URLs into links
|
||||
| Ext_fancy_lists -- ^ Enable fancy list numbers and delimiters
|
||||
| Ext_startnum -- ^ Make start number of ordered list significant
|
||||
@@ -113,7 +112,6 @@ pandocExtensions = Set.fromList
|
||||
, Ext_inline_code_attributes
|
||||
, Ext_markdown_in_html_blocks
|
||||
, Ext_escaped_line_breaks
|
||||
, Ext_monospace_autolinks
|
||||
, Ext_fancy_lists
|
||||
, Ext_startnum
|
||||
, Ext_definition_lists
|
||||
|
||||
@@ -1476,18 +1476,14 @@ bareURL :: Parser [Char] ParserState (F Inlines)
|
||||
bareURL = try $ do
|
||||
guardEnabled Ext_autolink_urls
|
||||
(orig, src) <- uri <|> emailAddress
|
||||
(guardEnabled Ext_monospace_autolinks >>
|
||||
return (return $ B.link src "" (B.codeWith ("",["url"],[]) orig)))
|
||||
<|> return (return $ B.link src "" (B.str orig))
|
||||
return $ return $ B.link src "" (B.codeWith ("",["url"],[]) orig)
|
||||
|
||||
autoLink :: Parser [Char] ParserState (F Inlines)
|
||||
autoLink = try $ do
|
||||
char '<'
|
||||
(orig, src) <- uri <|> emailAddress
|
||||
char '>'
|
||||
(guardEnabled Ext_monospace_autolinks >>
|
||||
return (return $ B.link src "" (B.codeWith ("",["url"],[]) orig)))
|
||||
<|> return (return $ B.link src "" (B.str orig))
|
||||
return $ return $ B.link src "" (B.codeWith ("",["url"],[]) orig)
|
||||
|
||||
image :: Parser [Char] ParserState (F Inlines)
|
||||
image = try $ do
|
||||
|
||||
Reference in New Issue
Block a user