From 619dfa2a2a19a8433424e830a21384c7b520866a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 30 Nov 2021 12:53:54 -0800 Subject: Markdown reader: don't allow `^` at beginning of link or image label. This is reserved for footnotes. Fixes a regression introduced by 0a93acf. Closes #7723. --- src/Text/Pandoc/Readers/Markdown.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index b72ab22e2..0d4592599 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -1775,8 +1775,7 @@ endline = try $ do -- a reference label for a link reference :: PandocMonad m => MarkdownParser m (F Inlines, Text) reference = do - -- guardDisabled Ext_footnotes <|> notFollowedBy' (string "[^") - -- guardDisabled Ext_citations <|> notFollowedBy' (string "[@") + guardDisabled Ext_footnotes <|> notFollowedBy' (string "[^") withRaw $ trimInlinesF <$> inlinesInBalancedBrackets parenthesizedChars :: PandocMonad m => MarkdownParser m Text -- cgit v1.2.3