aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-11-19 22:58:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-11-19 23:17:50 -0800
commit73e2d7976c06cc6087f2c4a63538593076fb5623 (patch)
treea9efd542f30a1e07df3b837897c07d9884f51619 /src/Text/Pandoc/Readers
parent244cd5644b44f43722530379138bd7bb9cbace9b (diff)
downloadpandoc-73e2d7976c06cc6087f2c4a63538593076fb5623.tar.gz
Renamed link attribute extensions.
* Old `link_attributes` -> `mmd_link_attributes` * Recently added `common_link_attributes` -> `link_attributes` Note: this change could break some existing workflows.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index fd16a5f75..d0c03062a 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -368,15 +368,15 @@ referenceKey = try $ do
let sourceURL = liftM unwords $ many $ try $ do
skipMany spaceChar
notFollowedBy' referenceTitle
- notFollowedBy' $ guardEnabled Ext_common_link_attributes >> attributes
+ notFollowedBy' $ guardEnabled Ext_link_attributes >> attributes
notFollowedBy' (() <$ reference)
many1 $ notFollowedBy space >> litChar
let betweenAngles = try $ char '<' >> manyTill litChar (char '>')
src <- try betweenAngles <|> sourceURL
tit <- option "" referenceTitle
attr <- option nullAttr $ try $
- guardEnabled Ext_common_link_attributes >> skipSpaces >> attributes
- addKvs <- option [] $ guardEnabled Ext_link_attributes
+ guardEnabled Ext_link_attributes >> skipSpaces >> attributes
+ addKvs <- option [] $ guardEnabled Ext_mmd_link_attributes
>> many (try $ spnl >> keyValAttr)
blanklines
let attr' = extractIdClass $ foldl (\x f -> f x) attr addKvs
@@ -1729,7 +1729,7 @@ regLink :: (Attr -> String -> String -> Inlines -> Inlines)
regLink constructor lab = try $ do
(src, tit) <- source
attr <- option nullAttr $
- guardEnabled Ext_common_link_attributes >> attributes
+ guardEnabled Ext_link_attributes >> attributes
return $ constructor attr src tit <$> lab
-- a link like [this][ref] or [this][] or [this]